freaku-homepage/Makefile

24 lines
517 B
Makefile
Raw Normal View History

2024-08-13 23:34:10 -07:00
PAGES_SRC = index.html rules.html donate.html
PAGES_BUILD = $(addprefix build/tor/,$(PAGES_SRC)) $(addprefix build/clearnet/,$(PAGES_SRC))
2024-08-03 23:11:50 -07:00
2024-08-13 23:34:10 -07:00
all: $(PAGES_BUILD) symlinks
2024-08-08 13:59:37 -07:00
2024-08-13 23:34:10 -07:00
.PHONY: clean
2024-08-12 22:25:39 -07:00
2024-08-13 23:34:10 -07:00
symlinks: build/tor/static build/clearnet/static
build/tor/static:
ln -s ../../static build/tor/
build/clearnet/static:
ln -s ../../static build/clearnet/
2024-08-03 23:11:50 -07:00
clean:
2024-08-13 23:34:10 -07:00
rm -rf $(PAGES_BUILD)
build/tor/%.html: %.j2.html base.j2.html
j2 -D site tor $< > $@
2024-08-03 23:11:50 -07:00
2024-08-13 23:34:10 -07:00
build/clearnet/%.html: %.j2.html base.j2.html
j2 -D site clearnet $< > $@