e3bcbadd378ebac0b3d2eada911a7ec1b7b21041
[ardour.git] / manual / Makefile
1
2 DOCNAME         = ardour_manual
3
4 # Default values, only set if not set in book Makefile
5 XMLFILE         ?= tmp/xml/$(DOCNAME).xml
6 #XSLFILE                ?= tmp/xsl/ardour.xsl
7 #CSSFILE                ?= tmp/$(DOCNAME).css
8 XMLTO           ?= xmlto
9 XSLTPROC        ?= xsltproc
10 PWD             = $(shell pwd)
11
12 xml:: clean
13         -@mkdir tmp
14         # copy all the necessary files to the build directory
15         -@cp -rf xml tmp/xml
16         -@cp -rf xsl tmp/xsl
17         -@cp -rf images  tmp/images
18
19 .PHONY : xml
20
21 html:: xml
22         # generate html
23         LANG=en_US.UTF-8 $(XMLTO) -o tmp/ html $(XMLFILE)
24 #       LANG=en_US.UTF-8 $(XMLTO) -x $(XSLFILE) -o tmp/ html $(XMLFILE)
25         # copy css file to html directory
26 #       -@cp -f css/$(DOCNAME).css $(CSSFILE)
27
28 .PHONY : html
29
30 test:: xml
31         xmllint --noout --postvalid --xinclude $(XMLFILE)
32         
33 .PHONY : test
34
35 clean::
36         @rm -rf tmp
37
38 .PHONY : clean