X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=Makefile;h=0f7bd783b44cc790d61630ff590cd91ed902f66c;hb=43aef9ceb16d0e2821c5ee81ea9d7c2f7ace84bb;hp=7a8468c88b24e2d0afd8fe8564f8d75f6a1f499d;hpb=35b4c4156b0505ebaa2d74287d53bf7e5e27f2af;p=open-adventure.git diff --git a/Makefile b/Makefile index 7a8468c..0f7bd78 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,8 @@ database.c database.h: compile adventure.text ./compile $(CC) $(CCFLAGS) $(DBX) -c database.c +html: index.html advent.html history.html hints.html + clean: rm -f *.o advent *.html advent.6 database.[ch] compile *.gcno *.gcda cd tests; $(MAKE) --quiet clean @@ -48,12 +50,13 @@ clean: check: advent cd tests; $(MAKE) --quiet +.SUFFIXES: .adoc .html + # Requires asciidoc and xsltproc/docbook stylesheets. -.asc.6: advent.adoc +.adoc.6: advent.adoc a2x --doctype manpage --format manpage $< -.asc.html: advent.adoc - a2x --doctype manpage --format xhtml -D . $< - rm -f docbook-xsl.css +.adoc.html: advent.adoc + asciidoc $< advent-$(VERS).tar.gz: $(SOURCES) advent.6 tar --transform='s:^:advent-$(VERS)/:' --show-transformed-names -cvzf advent-$(VERS).tar.gz $(SOURCES) advent.6