diff --git a/wiki/.build.yml b/wiki/.build.yml index fb26077..d56f99e 100644 --- a/wiki/.build.yml +++ b/wiki/.build.yml @@ -4,10 +4,16 @@ packages: - hut - m4 tasks: -- package: | +- build: | cd wiki make - tar cvz --exclude .git --exclude '*.m4' . >../site.tar.gz +- package: | + cd wiki + tar cvz \ + --exclude .git \ + --exclude '*.m4' \ + --exclude '*.mk' \ + . >../site.tar.gz ls -l ../site.tar.gz - upload: | hut pages publish -d be.murderu.us site.tar.gz diff --git a/wiki/Makefile b/wiki/Makefile index 1ed41af..9058a11 100644 --- a/wiki/Makefile +++ b/wiki/Makefile @@ -3,13 +3,10 @@ TARGETS = game/index.html unix/index.html all: $(TARGETS) -game/index.html: game/*.m4 - $(MAKE) -f ../page.mk -C game - -unix/index.html: unix/*.m4 - $(MAKE) -f ../page.mk -C unix - clean: $(RM) $(TARGETS) +%/index.html: %/*.m4 + $(MAKE) -C $* -f ../page.mk + .PHONY: all clean