X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/2f1753cc3e240fa497a87873ed19fe3f11e22331..92f801286d90e89f800f8768e01da2a0be7cd7e8:/doc/help/Makefile?ds=inline

diff --git a/doc/help/Makefile b/doc/help/Makefile
index 47cf0407..7f838d34 100644
--- a/doc/help/Makefile
+++ b/doc/help/Makefile
@@ -1,5 +1,15 @@
-all:
-	xsltproc -o book/ --xinclude ../xslt/html/chunk.xsl help.xml
+.PHONY: all clean
+
+all: book/index.html help.pdf
+
+book/index.html: ch*.xml help.xml
+	mkdir -p book/images
+	cp images/*.png book/images/
+	xsltproc --stringparam chunker.output.encoding "utf-8" -o book/ --xinclude /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl help.xml
+
+help.pdf: ch*.xml help.xml
+	dblatex -b xetex -I. help.xml
 
 clean:
-	rm book/*html
+	rm -r book
+	rm help.pdf