diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-02-20 21:45:52 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-02-20 21:45:52 +0000 |
commit | 6a60b57c13d0cd7be185e94215cd623ab333e840 (patch) | |
tree | 4434f4ab802c6638ee7f487df42a1de1eb74e914 /docbook | |
parent | bf70c4ef435fe72405b943ee521f446ebcbb5145 (diff) |
from Joerg Mayer: changes towards the automake generation
I've added some minor cleanup things
svn path=/trunk/; revision=13451
Diffstat (limited to 'docbook')
-rw-r--r-- | docbook/Makefile | 92 |
1 files changed, 38 insertions, 54 deletions
diff --git a/docbook/Makefile b/docbook/Makefile index e858b0cc67..254123b108 100644 --- a/docbook/Makefile +++ b/docbook/Makefile @@ -5,14 +5,6 @@ # $Id$ # -# if you need to change this, don't forget to change it in catalog.xml too - -DOCBOOKXSL="/usr/share/docbook-xsl" -# On SUSE 9.1 uncomment the following line: -#DOCBOOKXSL="/usr/share/xml/docbook/stylesheet/nwalsh/1.64.1" -# On SUSE 9.2 uncomment the following line: -#DOCBOOKXSL="/usr/share/xml/docbook/stylesheet/nwalsh/1.65.1" - # formatting objects processor # (comment this out, if you don't want pdf or don't have fop installed) # for win32 (cygwin) environments @@ -20,11 +12,12 @@ FOP="fop-0.20.5/fop.bat" # for unix like environments (if you have problems with fop, try to use an absolute path here) #FOP="/usr/share/fop-0.20.5/fop.sh" # One SUSE 9.1 and 9.2 uncomment the following line (make sure you have at least fop-0.20.5-71.2) -#FOP="/usr/bin/fop" +#FOP="fop" # html help compiler (Win32 only) # (comment this out, if you don't want chm or don't have hhc installed) #HHC="/cygdrive/c/Program Files/HTML Help Workshop/hhc.exe" +#HHC="true" ############### YOU SHOULDN'T HAVE TO EDIT ANYTHING BELOW THIS LINE! ################ @@ -34,8 +27,7 @@ XSLTPROC="xsltproc" # the XML validator (from the xsltproc package) XMLLINT="xmllint" -# as eug_chm will stop with an error, make sure it's the last in this dependency list -all: svn_version.xml eug edg +all: eug edg clean: rm -f *.html @@ -45,6 +37,7 @@ clean: rm -f *.fo rm -f *.pdf rm -f *.chm + rm -f svn_version.xml rm -rf eug_html rm -rf eug_html_chunked rm -rf eug_chm @@ -53,7 +46,7 @@ clean: rm -rf edg_chm -eug: eug_validate eug_pdf_a4 eug_html eug_html_chunked eug_chm +eug: eug_validate eug_pdf_a4 eug_pdf_us eug_html eug_html_chunked eug_chm # # on every build, record the working copy revision string @@ -66,56 +59,52 @@ svn_version.xml: FORCE svnversion -n . >> svn_version.xml echo '">' >> svn_version.xml -eug_images: - cp $(DOCBOOKXSL)/images/note.png ./graphics - cp $(DOCBOOKXSL)/images/tip.png ./graphics - cp $(DOCBOOKXSL)/images/warning.png ./graphics - # validate the content eug_validate: @ echo --- VALIDATING XML --- $(XMLLINT) --valid --noout user-guide.xml # create html single page file -eug_html: eug_images svn_version.xml +eug_html: svn_version.xml @ echo --- HTML SINGLE PAGE --- mkdir -p eug_html mkdir -p eug_html/graphics mkdir -p eug_html/graphics/toolbar cp ./graphics/*.* eug_html/graphics cp ./graphics/toolbar/*.* eug_html/graphics/toolbar - $(XSLTPROC) --nonet $(DOCBOOKXSL)/html/docbook.xsl user-guide.xml > eug_html/user-guide.html + $(XSLTPROC) --nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl user-guide.xml > eug_html/user-guide.html # create html chunked page files -eug_html_chunked: eug_images svn_version.xml +eug_html_chunked: svn_version.xml @ echo --- HTML CHUNKED --- mkdir -p eug_html_chunked mkdir -p eug_html_chunked/graphics mkdir -p eug_html_chunked/graphics/toolbar cp ./graphics/*.* eug_html_chunked/graphics cp ./graphics/toolbar/*.* eug_html_chunked/graphics/toolbar - $(XSLTPROC) --stringparam base.dir eug_html_chunked/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/html/chunk.xsl user-guide.xml + $(XSLTPROC) --stringparam base.dir eug_html_chunked/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl user-guide.xml # create pdf file (through XSL-FO), portrait pages on US letter paper (the default) # you will get lot's of errors, but that's ok -eug_pdf_us: eug_images svn_version.xml +eug_pdf_us: svn_version.xml ifdef FOP @ echo --- PDF US PAPER --- - $(XSLTPROC) --nonet custom_layer_pdf.xsl $(DOCBOOKXSL)/fo/docbook.xsl user-guide.xml > user-guide.fo - $(FOP) user-guide.fo user-guide.pdf + # $(XSLTPROC) --nonet custom_layer_pdf.xsl http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl user-guide.xml > user-guide-us.fo + $(XSLTPROC) --nonet custom_layer_pdf.xsl user-guide.xml > user-guide-us.fo + $(FOP) user-guide-us.fo user-guide-us.pdf endif # create pdf file (through XSL-FO), portrait pages on A4 paper # you will get lot's of errors, but that's ok -eug_pdf_a4: eug_images svn_version.xml +eug_pdf_a4: svn_version.xml ifdef FOP @ echo --- PDF A4 PAPER --- - $(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl user-guide.xml > user-guide.fo - $(FOP) user-guide.fo user-guide.pdf + $(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl user-guide.xml > user-guide-a4.fo + $(FOP) user-guide-a4.fo user-guide-a4.pdf endif # create MS html help file (through html chunked pages) -eug_chm: eug_images svn_version.xml +eug_chm: svn_version.xml ifdef HHC @ echo --- MICROSOFT HTML HELP --- mkdir -p eug_chm @@ -123,21 +112,15 @@ ifdef HHC mkdir -p eug_chm/graphics/toolbar cp ./graphics/*.* eug_chm/graphics cp ./graphics/toolbar/*.* eug_chm/graphics/toolbar - $(XSLTPROC) --stringparam base.dir eug_chm/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/htmlhelp/htmlhelp.xsl user-guide.xml + $(XSLTPROC) --stringparam base.dir eug_chm/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl user-guide.xml -$(HHC) htmlhelp.hhp - mv htmlhelp.chm user-guide.chm - rm -r htmlhelp.hhp - rm -r toc.hhc + -mv htmlhelp.chm user-guide.chm + -rm -r htmlhelp.hhp + -rm -r toc.hhc endif -edg: edg_validate edg_html_chunked edg_pdf_a4 edg_html edg_chm - -edg_images: - cp $(DOCBOOKXSL)/images/note.png ./edg_graphics - cp $(DOCBOOKXSL)/images/tip.png ./edg_graphics - cp $(DOCBOOKXSL)/images/warning.png ./edg_graphics - +edg: edg_validate edg_html_chunked edg_pdf_a4 edg_pdf_us edg_html edg_chm # validate the content edg_validate: @@ -145,50 +128,51 @@ edg_validate: $(XMLLINT) --valid --noout developer-guide.xml # create html single page file -edg_html: edg_images svn_version.xml +edg_html: svn_version.xml @ echo --- HTML SINGLE PAGE --- mkdir -p edg_html mkdir -p edg_html/edg_graphics cp ./edg_graphics/*.* edg_html/edg_graphics - $(XSLTPROC) --nonet $(DOCBOOKXSL)/html/docbook.xsl developer-guide.xml > edg_html/developer-guide.html + $(XSLTPROC) --nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl developer-guide.xml > edg_html/developer-guide.html # create html chunked page files -edg_html_chunked: edg_images svn_version.xml +edg_html_chunked: svn_version.xml @ echo --- HTML CHUNKED --- mkdir -p edg_html_chunked mkdir -p edg_html_chunked/edg_graphics cp ./edg_graphics/*.* edg_html_chunked/edg_graphics - $(XSLTPROC) --stringparam base.dir edg_html_chunked/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path edg_graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/html/chunk.xsl developer-guide.xml + $(XSLTPROC) --stringparam base.dir edg_html_chunked/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path edg_graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl developer-guide.xml # create pdf file (through XSL-FO), portrait pages on US letter paper (the default) # you will get lot's of errors, but that's ok -edg_pdf_us: edg_images svn_version.xml +edg_pdf_us: svn_version.xml ifdef FOP @ echo --- PDF US PAPER --- - $(XSLTPROC) --nonet custom_layer_pdf.xsl $(DOCBOOKXSL)/fo/docbook.xsl developer-guide.xml > developer-guide.fo - $(FOP) developer-guide.fo developer-guide.pdf + # $(XSLTPROC) --nonet custom_layer_pdf.xsl http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl developer-guide.xml > developer-guide-us.fo + $(XSLTPROC) --nonet custom_layer_pdf.xsl developer-guide.xml > developer-guide-us.fo + $(FOP) developer-guide-us.fo developer-guide-us.pdf endif # create pdf file (through XSL-FO), portrait pages on A4 paper # you will get lot's of errors, but that's ok -edg_pdf_a4: edg_images svn_version.xml +edg_pdf_a4: svn_version.xml ifdef FOP @ echo --- PDF A4 PAPER --- - $(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl developer-guide.xml > developer-guide.fo - $(FOP) developer-guide.fo developer-guide.pdf + $(XSLTPROC) --stringparam paper.type A4 --nonet custom_layer_pdf.xsl developer-guide.xml > developer-guide-a4.fo + $(FOP) developer-guide-a4.fo developer-guide-a4.pdf endif # create MS html help file (through html chunked pages) -edg_chm: edg_images svn_version.xml +edg_chm: svn_version.xml ifdef HHC @ echo --- MICROSOFT HTML HELP --- mkdir -p edg_chm mkdir -p edg_chm/edg_graphics cp ./edg_graphics/*.* edg_chm/edg_graphics - $(XSLTPROC) --stringparam base.dir edg_chm/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path edg_graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet $(DOCBOOKXSL)/htmlhelp/htmlhelp.xsl developer-guide.xml + $(XSLTPROC) --stringparam base.dir edg_chm/ --stringparam use.id.as.filename 1 --stringparam admon.graphics 1 --stringparam admon.graphics.path edg_graphics/ --stringparam section.autolabel 1 --stringparam section.label.includes.component.label 1 --nonet http://docbook.sourceforge.net/release/xsl/current/htmlhelp/htmlhelp.xsl developer-guide.xml -$(HHC) htmlhelp.hhp - mv htmlhelp.chm developer-guide.chm - rm -r htmlhelp.hhp - rm -r toc.hhc + -mv htmlhelp.chm developer-guide.chm + -rm -r htmlhelp.hhp + -rm -r toc.hhc endif |