Ticket #31692: patch-doc-new-Makefile.diff

File patch-doc-new-Makefile.diff, 1.7 KB (added by ak.ml@…, 13 years ago)

Patch against trunk/doc-new/Makefile

  • Makefile

     
    1919TCLSH    = /usr/bin/tclsh
    2020XSLTPROC = $(PREFIX)/bin/xsltproc
    2121XMLLINT  = $(PREFIX)/bin/xmllint
     22DBLATEX  = $(PREFIX)/bin/dblatex
    2223
    2324# Data directories.
    2425GUIDE = guide
     
    2728GUIDE_SRC = $(GUIDE)/xml
    2829MAN_SRC   = $(MAN)/xml
    2930# Result directories.
    30 GUIDE_RESULT       = $(GUIDE)/html
    31 GUIDE_RESULT_CHUNK = $(GUIDE_RESULT)/chunked
    32 MAN_RESULT         = $(MAN)/man/
     31GUIDE_RESULT         = $(GUIDE)/html
     32GUIDE_RESULT_CHUNK   = $(GUIDE_RESULT)/chunked
     33GUIDE_RESULT_DBLATEX = $(GUIDE)/dblatex
     34MAN_RESULT           = $(MAN)/man/
    3335# Man temporary directory.
    3436MAN_TMP = $(MAN)/tmp
    3537
     
    4244# DocBook HTML stylesheet for the guide.
    4345STYLESHEET = docbook.css
    4446
    45 .PHONY: all guide guide-chunked man clean validate
     47.PHONY: all guide guide-chunked guide-dblatex man clean validate
    4648
    47 all: guide guide-chunked man
     49all: guide guide-chunked guide-dblatex man
    4850
    4951# Generate the HTML guide using DocBook from the XML sources in $(GUIDE_SRC).
    5052guide:
     
    7981        # If someone knows a better way to do this please change it.
    8082        $(TCLSH) toc-for-chunked.tcl $(GUIDE_RESULT_CHUNK)
    8183
     84guide-dblatex: SUFFIX = pdf
     85guide-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
    8294
    8395# Generate the man pages using DocBook from the XML source in $(MAN_SRC).
    8496# The portfile-*.xml and portgroup-*.xml files in $(GUIDE_SRC) are copied to