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
" WARNING: The Ardour Scons build script must be run before "
14 @echo
" building the manual. "
16 @echo
" The Following is a list of supported build targets:"
19 @echo
" Build HTML version of ardour manual."
22 @echo
" Validate DocBook XML source."
25 @echo
" Format DocBook XML source using xmlformat."
28 @echo
" Remove temporary files."
31 # xsltproc -output option gives I/O errors because??, so
32 # just move the html to the output directory
34 # creating output directory
37 LANG
=en_US.UTF-8
$(XSLTPROC
) -xinclude
$(XSLFILE
) $(XMLFILE
)
38 # copy html files to output directory
40 # copy css file to output directory
41 -@cp css
/$(CSSFILE
) $(OUTDIR
)/$(CSSFILE
)
42 # copy the image files to the output directory
43 -@cp
-r images
$(OUTDIR
)/images
49 xmllint
--noout
--postvalid
--xinclude
$(XMLFILE
)
54 @for file in
`find xml/ -name '*.xml' -type f`; \
55 do xmlformat
/xmlformat.pl
--in-place
--backup .bak \
56 --config-file xmlformat
/xmlformat-ardour.conf
$$file; \
63 @for file in
`find xml/ -name '*.bak' -type f`; do \
69 cd tmp
&& tar cf
- . | bzip2
> ..
/man.
tar.bz2
70 scp man.
tar.bz2 las@ardour.org
:ardour.org