2 DOCNAME = ardour_manual
4 # Default values, only set if not set in book Makefile
6 XMLFILE ?= xml/$(DOCNAME).xml
7 XSLFILE ?= xsl/html.xsl
8 CSSFILE ?= $(DOCNAME).css
13 @echo " The Following is a list of supported build targets:"
16 @echo " Build HTML version of ardour manual."
19 @echo " Validate DocBook XML source."
22 @echo " Format DocBook XML source using xmlformat."
25 @echo " Remove temporary files."
28 # xsltproc -output option gives I/O errors because??, so
29 # just move the html to the output directory
31 # creating output directory
34 LANG=en_US.UTF-8 $(XSLTPROC) -xinclude $(XSLFILE) $(XMLFILE)
35 # copy html files to output directory
37 # copy css file to output directory
38 -@cp css/$(CSSFILE) $(OUTDIR)/$(CSSFILE)
39 # copy the image files to the output directory
40 -@cp -r images $(OUTDIR)/images
46 xmllint --noout --postvalid --xinclude $(XMLFILE)
51 @for file in `find xml/*.xml`; \
52 do xmlformat/xmlformat.pl --in-place --backup .bak \
53 --config-file xmlformat/xmlformat-ardour.conf $$file; \
64 cd tmp && tar cf - . | bzip2 > ../man.tar.bz2
65 scp man.tar.bz2 las@ardour.org:ardour.org