forked from EFForg/privacybadger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (34 loc) · 1.34 KB
/
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
39
40
41
42
43
44
45
46
47
48
lint:
./node_modules/.bin/eslint .
updatepsl:
scripts/updatepsl.sh
updateseed:
scripts/updateseeddata.sh
apply_effdntlist:
scripts/apply_effdntlist.py src/data/seed.json
updategoogle:
scripts/updategoogle.sh
updatecnames:
scripts/updatecnames.sh
todo:
grep -rn 'TODO' src
upload:
$(eval TMPFILE := $(shell mktemp))
scp src/data/yellowlist.txt $$YELLOWLIST_UPLOAD_PATH
scripts/generate-legacy-yellowlist.sh > $(TMPFILE) && scp $(TMPFILE) $$YELLOWLIST_LEGACY_UPLOAD_PATH && rm $(TMPFILE)
scp src/data/dnt-policies.json $$DNT_POLICIES_UPLOAD_PATH
# get the Transifex CLI client from https://github.com/transifex/cli/releases/latest
tx:
tx pull -f
scripts/fix_placeholders.py
runch:
./node_modules/.bin/web-ext run --target chromium --start-url "chrome://extensions" -s src/
runfa:
./node_modules/.bin/web-ext run -s src/ --target firefox-android --adb-bin $$ADB_BIN --android-device $$ANDROID_DEVICE_ID --firefox-apk org.mozilla.firefox --verbose
runff:
./node_modules/.bin/web-ext run --devtools --start-url "about:debugging#/runtime/this-firefox" -s src/
runfn:
./node_modules/.bin/web-ext run --devtools --start-url "about:debugging#/runtime/this-firefox" -s src/ -f nightly
test:
BROWSER=chrome ENABLE_XVFB=1 pytest -s tests/
.PHONY: lint updatepsl updateseed apply_effdntlist updategoogle updatecnames todo tx runch runfa runff runfn test