summaryrefslogtreecommitdiff
path: root/manual/Makefile
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2007-02-02 04:29:55 +0000
committerTim Mayberry <mojofunk@gmail.com>2007-02-02 04:29:55 +0000
commit56e384349b1c64b56e4c26faa6df788358d511e1 (patch)
tree45b56ab37919399abdf5f1aec05dbfd06a84df93 /manual/Makefile
parente0991be04d5fad5715a90b1fa6e38bcb5a0e5bce (diff)
Add the ardour manual converted to docbook format with only a few minor
additions. Add dbhelper.vim key stroke mappings I use for working with docbook source. There are no xsl or css files for customizing the html output so it will look really boring...this will only be temporary. Support for content localization and generation of pdf's is planned. git-svn-id: svn://localhost/ardour2/trunk@1405 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'manual/Makefile')
-rw-r--r--manual/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/manual/Makefile b/manual/Makefile
new file mode 100644
index 0000000000..e3bcbadd37
--- /dev/null
+++ b/manual/Makefile
@@ -0,0 +1,38 @@
+
+DOCNAME = ardour_manual
+
+# Default values, only set if not set in book Makefile
+XMLFILE ?= tmp/xml/$(DOCNAME).xml
+#XSLFILE ?= tmp/xsl/ardour.xsl
+#CSSFILE ?= tmp/$(DOCNAME).css
+XMLTO ?= xmlto
+XSLTPROC ?= xsltproc
+PWD = $(shell pwd)
+
+xml:: clean
+ -@mkdir tmp
+ # copy all the necessary files to the build directory
+ -@cp -rf xml tmp/xml
+ -@cp -rf xsl tmp/xsl
+ -@cp -rf images tmp/images
+
+.PHONY : xml
+
+html:: xml
+ # generate html
+ LANG=en_US.UTF-8 $(XMLTO) -o tmp/ html $(XMLFILE)
+# LANG=en_US.UTF-8 $(XMLTO) -x $(XSLFILE) -o tmp/ html $(XMLFILE)
+ # copy css file to html directory
+# -@cp -f css/$(DOCNAME).css $(CSSFILE)
+
+.PHONY : html
+
+test:: xml
+ xmllint --noout --postvalid --xinclude $(XMLFILE)
+
+.PHONY : test
+
+clean::
+ @rm -rf tmp
+
+.PHONY : clean