Ticket #31692: patch-doc-new-Makefile.diff
File patch-doc-new-Makefile.diff, 1.7 KB (added by ak.ml@…, 13 years ago) |
---|
-
Makefile
19 19 TCLSH = /usr/bin/tclsh 20 20 XSLTPROC = $(PREFIX)/bin/xsltproc 21 21 XMLLINT = $(PREFIX)/bin/xmllint 22 DBLATEX = $(PREFIX)/bin/dblatex 22 23 23 24 # Data directories. 24 25 GUIDE = guide … … 27 28 GUIDE_SRC = $(GUIDE)/xml 28 29 MAN_SRC = $(MAN)/xml 29 30 # Result directories. 30 GUIDE_RESULT = $(GUIDE)/html 31 GUIDE_RESULT_CHUNK = $(GUIDE_RESULT)/chunked 32 MAN_RESULT = $(MAN)/man/ 31 GUIDE_RESULT = $(GUIDE)/html 32 GUIDE_RESULT_CHUNK = $(GUIDE_RESULT)/chunked 33 GUIDE_RESULT_DBLATEX = $(GUIDE)/dblatex 34 MAN_RESULT = $(MAN)/man/ 33 35 # Man temporary directory. 34 36 MAN_TMP = $(MAN)/tmp 35 37 … … 42 44 # DocBook HTML stylesheet for the guide. 43 45 STYLESHEET = docbook.css 44 46 45 .PHONY: all guide guide-chunked man clean validate47 .PHONY: all guide guide-chunked guide-dblatex man clean validate 46 48 47 all: guide guide-chunked man49 all: guide guide-chunked guide-dblatex man 48 50 49 51 # Generate the HTML guide using DocBook from the XML sources in $(GUIDE_SRC). 50 52 guide: … … 79 81 # If someone knows a better way to do this please change it. 80 82 $(TCLSH) toc-for-chunked.tcl $(GUIDE_RESULT_CHUNK) 81 83 84 guide-dblatex: SUFFIX = pdf 85 guide-dblatex: 86 $(MKDIR) -p $(GUIDE_RESULT_DBLATEX) 87 $(DBLATEX) \ 88 --fig-path="$(GUIDE)/resources/images" \ 89 --type="$(SUFFIX)" \ 90 --param='toc.section.depth=2' \ 91 --param='doc.section.depth=3' \ 92 --output="$(GUIDE_RESULT_DBLATEX)/macports-guide.$(SUFFIX)" \ 93 $(GUIDE_SRC)/guide.xml 82 94 83 95 # Generate the man pages using DocBook from the XML source in $(MAN_SRC). 84 96 # The portfile-*.xml and portgroup-*.xml files in $(GUIDE_SRC) are copied to