PAGES_SRC = index.html rules.html donate.html PAGES_BUILD = $(addprefix build/tor/,$(PAGES_SRC)) $(addprefix build/clearnet/,$(PAGES_SRC)) all: $(PAGES_BUILD) symlinks .PHONY: clean symlinks: build/tor/static build/clearnet/static build/%/static: ln -s ../../static build/$*/ clean: rm -rf $(PAGES_BUILD) build/tor/%.html: %.j2.html base.j2.html j2 -D site tor $< > $@ build/clearnet/%.html: %.j2.html base.j2.html j2 -D site clearnet $< > $@