15 lines
443 B
Makefile
15 lines
443 B
Makefile
CONVERTER = python3 src/converter.py
|
|
BLOCKLISTS = seo-nonsense reflink-spam satire mirror
|
|
TARGET_FORMATS = adguard ublacklist
|
|
|
|
build: $(foreach blocklist, $(BLOCKLISTS), $(foreach targetformat, $(TARGET_FORMATS), dist/$(blocklist)/$(targetformat).txt))
|
|
|
|
dist/%.txt:
|
|
@mkdir -p $(dir $@) && \
|
|
$(CONVERTER) --inputfile src/$(firstword $(subst /, ,$*))-source.json --targetformat $(notdir $*) --outputfile $@
|
|
|
|
clean:
|
|
rm -rf dist/*
|
|
|
|
all: build
|