2007-02-01 23:29:55 -05:00
|
|
|
|
|
|
|
DOCNAME = ardour_manual
|
|
|
|
|
|
|
|
# Default values, only set if not set in book Makefile
|
|
|
|
XMLFILE ?= tmp/xml/$(DOCNAME).xml
|
2007-02-02 20:05:03 -05:00
|
|
|
XSLFILE ?= tmp/xsl/html.xsl
|
|
|
|
CSSFILE ?= tmp/$(DOCNAME).css
|
2007-02-01 23:29:55 -05:00
|
|
|
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
|
2007-02-02 20:05:03 -05:00
|
|
|
LANG=en_US.UTF-8 $(XMLTO) -x $(XSLFILE) -o tmp/ html $(XMLFILE)
|
2007-02-01 23:29:55 -05:00
|
|
|
# copy css file to html directory
|
2007-02-02 20:05:03 -05:00
|
|
|
-@cp -f css/$(DOCNAME).css $(CSSFILE)
|
2007-02-01 23:29:55 -05:00
|
|
|
|
|
|
|
.PHONY : html
|
|
|
|
|
|
|
|
test:: xml
|
|
|
|
xmllint --noout --postvalid --xinclude $(XMLFILE)
|
|
|
|
|
|
|
|
.PHONY : test
|
|
|
|
|
|
|
|
clean::
|
|
|
|
@rm -rf tmp
|
|
|
|
|
|
|
|
.PHONY : clean
|