From 736470bf057f238a5be301b609dfe5e8e8a62f44 Mon Sep 17 00:00:00 2001 From: dtb Date: Fri, 23 Dec 2022 21:34:32 -0500 Subject: [PATCH] simplify build --- wiki/Makefile | 16 +++++++++++----- wiki/game/index.m4 | 2 +- wiki/{game/Makefile => page.mk} | 0 wiki/unix/Makefile | 9 --------- 4 files changed, 12 insertions(+), 15 deletions(-) rename wiki/{game/Makefile => page.mk} (100%) delete mode 100644 wiki/unix/Makefile 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