From ee27f645f2f9d77b109a189ecda5ae7a2aaa2d8f Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Tue, 7 Oct 2014 09:39:21 -0700 Subject: [PATCH] Makefile: replace hardcoded AsciiDoc commands for more generic ones --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index fbf39c9f..83dee1f9 100644 --- a/Makefile +++ b/Makefile @@ -96,17 +96,17 @@ $(FREEDOOM2): wadinfo_phase2.txt subdirs rm -f $@ $(DEUTEX) $(DEUTEX_ARGS) -iwad -lumps -patch -flats -sounds -musics -graphics -sprites -levels -build wadinfo_phase2.txt $@ -doc: BUILD-SYSTEM.adoc COMPILING.adoc README.adoc - asciidoc BUILD-SYSTEM.adoc - asciidoc COMPILING.adoc - asciidoc README.adoc +%.html: %.adoc + asciidoc $< + +doc: $(patsubst %.adoc,%.html,$(wildcard *.adoc)) DISTDOCS=COPYING CREDITS README.html .PHONY: dist # Due to convoluted reasons, the WADs must directly proceed the game name. -dist: $(OBJS) doc +dist: $(OBJS) README.html VERSION=$(VERSION) scripts/makepkgs freedm $(FREEDM) $(DISTDOCS) VERSION=$(VERSION) scripts/makepkgs freedoom $(FREEDOOM1) $(FREEDOOM2) $(DISTDOCS)