Changeset 26951 for trunk/doc


Ignore:
Timestamp:
Jul 13, 2007, 11:57:06 AM (12 years ago)
Author:
afb@…
Message:

add make target for new guide (make new)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/guide/Makefile

    r26581 r26951  
    3131HTMLDIR?=               html
    3232XHTMLDIR?=              xhtml
     33NEWHTMLDIR?=            new
    3334STYLESHEET?=            ${DOCBOOK_XSL}/html/chunk.xsl
    3435XSTYLESHEET?=           ${DOCBOOK_XSL}/xhtml/chunk.xsl
     36NEWSTYLESHEET?=         ${DOCBOOK_XSL}/xhtml/docbook.xsl
    3537XML_CATALOG_FILES?=    ${prefix}/etc/xml/catalog
    3638XML_DEBUG_CATALOG?=
    3739CSS_STYLESHEET?=        docbook.css
     40NEWCSS_STYLESHEET?=     newdocbook.css
    3841RESOURCES?=             resources/
    3942STRINGPARAMS?=          --stringparam html.stylesheet ${CSS_STYLESHEET} --stringparam chunk.section.depth 0
     43NEWSTRINGPARAMS?=       --stringparam html.stylesheet ${NEWCSS_STYLESHEET} --stringparam section.autolabel 1
    4044
    4145.PHONY : all
     
    4448.PHONY : html
    4549.PHONY : xhtml
     50.PHONY : new
    4651.PHONY : check
    4752.PHONY : tidy
     
    5964        xsltproc --xinclude ${STRINGPARAMS} -o "${XHTMLDIR}/" "${XSTYLESHEET}" "${SOURCEDIR}/guide.xml"
    6065
     66new:
     67        mkdir -p ${NEWHTMLDIR}
     68        cp ${RESOURCES}${NEWCSS_STYLESHEET} ${NEWHTMLDIR}
     69        xsltproc --xinclude ${NEWSTRINGPARAMS} -o "${NEWHTMLDIR}/guide.html" "${NEWSTYLESHEET}" "${SOURCEDIR}/newguide.xml"
     70
    6171all: html xhtml tidy
    6272
     
    7080
    7181clean:
    72         rm -fr ${HTMLDIR} ${XHTMLDIR}
     82        rm -fr ${HTMLDIR} ${XHTMLDIR} ${NEWHTMLDIR}
    7383
    7484include ../../base/Mk/macports.autoconf.mk
Note: See TracChangeset for help on using the changeset viewer.