X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=manual%2FMakefile;h=19085e10198c5ff62d46a31e0936ba9f429ccf42;hb=32b2ddd24a81dae469fd4b936dc20c5514b1f78a;hp=4fa647f44ae8dd01a539d527e5b985aec50433de;hpb=9d548f998b94dcc5e04496740aead50f2b9f5f07;p=ardour.git diff --git a/manual/Makefile b/manual/Makefile index 4fa647f44a..19085e1019 100644 --- a/manual/Makefile +++ b/manual/Makefile @@ -9,6 +9,25 @@ CSSFILE ?= $(DOCNAME).css XSLTPROC ?= xsltproc #PWD = $(shell pwd) +help:: + @echo " WARNING: The Ardour Scons build script must be run before " + @echo " building the manual. " + @echo + @echo " The Following is a list of supported build targets:" + @echo + @echo " html:" + @echo " Build HTML version of ardour manual." + @echo + @echo " test:" + @echo " Validate DocBook XML source." + @echo + @echo " format:" + @echo " Format DocBook XML source using xmlformat." + @echo + @echo " clean:" + @echo " Remove temporary files." + @echo + # xsltproc -output option gives I/O errors because??, so # just move the html to the output directory html:: clean @@ -26,12 +45,23 @@ html:: clean .PHONY : html test:: + # validating book xmllint --noout --postvalid --xinclude $(XMLFILE) .PHONY : test +format:: test + @for file in `find xml/ -name '*.xml' -type f`; \ + do xmlformat/xmlformat.pl --in-place --backup .bak \ + --config-file xmlformat/xmlformat-ardour.conf $$file; \ + done + +.PHONY : format + clean:: @rm -rf $(OUTDIR) + @for file in `find xml/ -name '*.bak' -type f`; do \ + rm $$file; done .PHONY : clean