forked from paulgb/BarbBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (20 loc) · 818 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
# Generate everything: extension and blacklists.
all : all_blacklists BarbBlock.txt package
# Generically generate standalone blacklist files.
blacklists/%.txt : src/generate_blacklist.py blacklist.yaml templates/%.txt.tmpl
python $^ $@
# Generate files related to the extension.
extension/% : src/generate_blacklist.py blacklist.yaml templates/extension-%.tmpl
python $^ $@
# Package the extension as a zip.
package : extension/manifest.json extension/barbblock.js
zip barbblock.zip -r ./extension/ -x *.git*
# Build all of the standalone files.
all_blacklists : \
blacklists/adblock-plus.txt \
blacklists/hosts-file.txt \
blacklists/ublock-origin.txt \
blacklists/domain-list.txt
# Copy the ublock blacklist to /BarbBlock.txt for legacy reasons.
BarbBlock.txt : blacklists/ublock-origin.txt
cp $< $@