Changeset 94337


Ignore:
Timestamp:
Jun 15, 2012, 6:05:26 PM (8 years ago)
Author:
cal@…
Message:

doc-new: Add Makefile rules to generate guide in PDF form using dblatex, closes #31692

I'm also adding guide-dblatex to all, since trunk/base/portmgr/jobs/GuideRegen.sh explicity
specifies "make guide" and "make guide-chunked", so it won't be affected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc-new/Makefile

    r78105 r94337  
    2020XSLTPROC = $(PREFIX)/bin/xsltproc
    2121XMLLINT  = $(PREFIX)/bin/xmllint
     22DBLATEX  = $(PREFIX)/bin/dblatex
    2223
    2324# Data directories.
     
    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
     
    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).
     
    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).
Note: See TracChangeset for help on using the changeset viewer.