diff --git a/wiki/Makefile b/wiki/Makefile index e08e540..3f5b591 100644 --- a/wiki/Makefile +++ b/wiki/Makefile @@ -1,9 +1,15 @@ -all: game/index.html unix/index.html +RM = rm -f +TARGETS = game/index.html unix/index.html + +all: $(TARGETS) + game/index.html: game/*.m4 - $(MAKE) -C game + $(MAKE) -f page.mk -C game + unix/index.html: unix/*.m4 - $(MAKE) -C unix + $(MAKE) -f page.mk -C unix + clean: - $(MAKE) -C game clean - $(MAKE) -C unix clean + $(RM) $(TARGETS) + .PHONY: all clean diff --git a/wiki/game/index.m4 b/wiki/game/index.m4 index 1880e70..950eea9 100644 --- a/wiki/game/index.m4 +++ b/wiki/game/index.m4 @@ -1,5 +1,5 @@ define(`_DESCRIPTION', `a loss cause')dnl -define(`_PAGE', `thegame')dnl +define(`_PAGE', `game')dnl include(`../wiki.m4')dnl _header(`Game') diff --git a/wiki/game/Makefile b/wiki/page.mk similarity index 100% rename from wiki/game/Makefile rename to wiki/page.mk diff --git a/wiki/unix/Makefile b/wiki/unix/Makefile deleted file mode 100644 index e0ce0de..0000000 --- a/wiki/unix/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -RM = rm -f - -index.html: *.m4 - m4 index.m4 >index.html - -clean: - $(RM) index.html - -.PHONY: clean