-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmakefile
40 lines (29 loc) · 940 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Pull all dependencies for mozCingi
mutagen-install: venv-install fuzzmanager-install mozitp-install lib-install
install: venv-install lib-install
venv-install:
ifndef VIRTUAL_ENV
virtualenv env
endif
lib-install:
. env/bin/activate; \
python setup.py install;
fuzzmanager-install:
@git clone https://github.com/MozillaSecurity/FuzzManager;
mkdir lib/FuzzManager;
cp -Rf FuzzManager/Collector/* lib/FuzzManager;
cp -Rf FuzzManager/FTB lib/FuzzManager;
cp FuzzManager/requirements.txt FuzzManager_requirements.txt;
touch FuzzManager/__init__.py;
cd lib/FuzzManager;\
find ./ -type f -exec sed -i -e 's/from FTB/from lib.FuzzManager.FTB/g' {} \;
find ./ -type f -exec sed -i -e 's/import lib.FuzzManager.FTB/import lib.FuzzManager.FTB/g' {} \;
rm -rf FuzzManager
mozitp-install:
cd lib;\
git clone https://github.com/Mozilla-TWQA/MozITP;
clean-data:
rm -rf tmp/*;
rm -rf output/*;
clean: clean-data
rm -rf env;