ardour/manual/Makefile
Paul Davis aa60114843 some fixes/improvements for track selection; add upload target to manual makefile; do not build peakfile for SilentFileSource
git-svn-id: svn://localhost/ardour2/trunk@1426 d708f5d6-7413-0410-9779-e7cbd77b26cf
2007-02-06 15:50:05 +00:00

44 lines
823 B
Makefile

DOCNAME = ardour_manual
# Default values, only set if not set in book Makefile
XMLFILE ?= tmp/xml/$(DOCNAME).xml
XSLFILE ?= tmp/xsl/html.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) -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
upload: html
cd tmp && tar cf - . | bzip2 > ../man.tar.bz2
scp man.tar.bz2 las@ardour.org:ardour.org
.PHONY : upload