blob: e3bcbadd378ebac0b3d2eada911a7ec1b7b21041 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
|