summaryrefslogtreecommitdiff
path: root/doc/examples/softwaresite
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-21 23:23:21 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-21 23:23:21 +0000
commiteeea1000233a352f1a3bee3122b37e2d9fafe0e0 (patch)
treea8736e43c80fb21ca066278fb73f6435f7ccf0a3 /doc/examples/softwaresite
parentd3df4c133c5ee2e949f1af794d4777b3e33fe6d1 (diff)
improve Makefile
Diffstat (limited to 'doc/examples/softwaresite')
-rw-r--r--doc/examples/softwaresite/Makefile15
-rw-r--r--doc/examples/softwaresite/doc/Makefile9
2 files changed, 15 insertions, 9 deletions
diff --git a/doc/examples/softwaresite/Makefile b/doc/examples/softwaresite/Makefile
new file mode 100644
index 000000000..57a0c9737
--- /dev/null
+++ b/doc/examples/softwaresite/Makefile
@@ -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
diff --git a/doc/examples/softwaresite/doc/Makefile b/doc/examples/softwaresite/doc/Makefile
deleted file mode 100644
index 5a5fc85ee..000000000
--- a/doc/examples/softwaresite/doc/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# Build static html docs suitable for being shipped in the software
-# package.
-
-all:
- ikiwiki `pwd` html -v --plugin=goodstuff \
- --no-rcs --exclude=/discussion --exclude=html --no-discussion
-
-clean:
- rm -rf .ikiwiki