]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/examples/softwaresite/Makefile
improve Makefile
[git.ikiwiki.info.git] / doc / examples / softwaresite / Makefile
diff --git a/doc/examples/softwaresite/Makefile b/doc/examples/softwaresite/Makefile
new file mode 100644 (file)
index 0000000..57a0c97
--- /dev/null
@@ -0,0 +1,15 @@
+# Build static html docs suitable for being shipped in the software
+# package. This depends on ikiwiki being installed to build the docs.
+
+ifeq ($(shell which ikiwiki),)
+IKIWIKI=echo "** ikiwiki not found" >&2 ; echo ikiwiki
+else
+IKIWIKI=ikiwiki
+endif
+
+all:
+       $(IKIWIKI) `pwd` html -v --plugin=goodstuff \
+               --no-rcs --exclude=/discussion --exclude=html --no-discussion
+
+clean:
+       rm -rf .ikiwiki html