blocklisty/Makefile
Wiktor 103034719d fix: Makefile
Co-authored-by: cichy1173 <cichy1173@protonmail.com>
2025-05-28 22:09:02 +02:00

24 lines
624 B
Makefile

CONVERTER = python3 src/converter.py
BLOCKLISTS = seo-nonsense reflink-spam satire mirror
TARGET_FORMATS = adguard ublacklist
TARGETS = $(foreach blocklist, $(BLOCKLISTS), $(foreach targetformat, $(TARGET_FORMATS), dist/$(blocklist)/$(targetformat).txt))
build: $(TARGETS)
dist/%/adguard.txt: src/%-source.json
mkdir -p dist/$*
$(CONVERTER) --inputfile src/$*-source.json --targetformat adguard --outputfile $@
dist/%/ublacklist.txt: src/%-source.json
mkdir -p dist/$*
$(CONVERTER) --inputfile src/$*-source.json --targetformat ublacklist --outputfile $@
clean:
rm -rf dist/*
all: build
.PHONY: build clean all