Added a make file and did a final personal read through of the paper.
[to_fork_or_not] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..e87b8ff
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,37 @@
+#!/usr/bin/make -f
+
+SOURCE = to_fork_or_not_to_fork.xml
+OUTPUT_STEM = to_fork_or_not_to_fork
+
+CURRENT_DISTRO = $(shell test -e /etc/debian_version && echo "debian")
+ifeq ($(CURRENT_DISTRO),debian)
+       NWDBXSL = /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl
+else
+       NWDBXSL = /usr/share/xml/docbook/stylesheet/nwalsh/current/html/docbook.xsl
+endif
+
+html:
+       xsltproc -o "$(OUTPUT_STEM).html" "$(NWDBXSL)" "$(SOURCE)"
+
+pdf:
+       xmlto fo "$(SOURCE)"
+       fop "$(OUTPUT_STEM).fo" "$(OUTPUT_STEM).pdf" 
+       
+build: html pdf
+
+viewpdf: pdf
+       xpdf "$(OUTPUT_STEM).pdf"
+       
+validate:
+       xmllint --noout --noent "$(SOURCE)"
+
+# Remove the mess
+clean:
+       rm -rf "$(OUTPUT_STEM).html" "$(OUTPUT_STEM).fo" "$(OUTPUT_STEM).pdf" 
+       
+#      rm -rf ./tmp
+
+
+# some future rules
+#move:
+#install: build move

Benjamin Mako Hill || Want to submit a patch?