Add html production for convenience generating the website.
[open-adventure.git] / Makefile
index 7a8468c88b24e2d0afd8fe8564f8d75f6a1f499d..0f7bd783b44cc790d61630ff590cd91ed902f66c 100644 (file)
--- 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