[27106] trunk/doc/guide/Makefile

source_changes at macosforge.org source_changes at macosforge.org
Thu Jul 19 12:29:20 PDT 2007


Revision: 27106
          http://trac.macosforge.org/projects/macports/changeset/27106
Author:   markd at macports.org
Date:     2007-07-19 12:29:19 -0700 (Thu, 19 Jul 2007)

Log Message:
-----------
Update to handle target "new" properly for the new guide.

Modified Paths:
--------------
    trunk/doc/guide/Makefile

Modified: trunk/doc/guide/Makefile
===================================================================
--- trunk/doc/guide/Makefile	2007-07-19 18:58:28 UTC (rev 27105)
+++ trunk/doc/guide/Makefile	2007-07-19 19:29:19 UTC (rev 27106)
@@ -27,20 +27,22 @@
 # set XML_DEBUG_CATALOG= to see catalog debugging info
 
 SOURCEDIR?=		xml
+NEWSOURCEDIR?=		new/xml
 DOCBOOK_XSL?=	        ${prefix}/share/xsl/docbook-xsl/
 HTMLDIR?=		html
+NEWHTMLDIR?=            new/html
 XHTMLDIR?=		xhtml
-NEWHTMLDIR?=		new
 STYLESHEET?=	        ${DOCBOOK_XSL}/html/chunk.xsl
 XSTYLESHEET?=	        ${DOCBOOK_XSL}/xhtml/chunk.xsl
 NEWSTYLESHEET?=	        ${DOCBOOK_XSL}/xhtml/docbook.xsl
 XML_CATALOG_FILES?=    ${prefix}/etc/xml/catalog
 XML_DEBUG_CATALOG?=
 CSS_STYLESHEET?=	docbook.css
-NEWCSS_STYLESHEET?=	newdocbook.css
+NEWCSS_STYLESHEET?=	docbook.css
 RESOURCES?=		resources/
+NEWRESOURCES?=		new/resources/
 STRINGPARAMS?=		--stringparam html.stylesheet ${CSS_STYLESHEET} --stringparam chunk.section.depth 0
-NEWSTRINGPARAMS?=	--stringparam html.stylesheet ${NEWCSS_STYLESHEET} --stringparam section.autolabel 1
+NEWSTRINGPARAMS?=	--stringparam html.stylesheet ${NEWCSS_STYLESHEET} --stringparam section.autolabel 1 --stringparam toc.section.depth 1 --stringparam generate.toc "book toc"
 
 .PHONY : all
 .PHONY : clean
@@ -65,8 +67,8 @@
 
 new:
 	mkdir -p ${NEWHTMLDIR}
-	cp ${RESOURCES}${NEWCSS_STYLESHEET} ${NEWHTMLDIR}
-	xsltproc --xinclude ${NEWSTRINGPARAMS} -o "${NEWHTMLDIR}/guide.html" "${NEWSTYLESHEET}" "${SOURCEDIR}/newguide.xml"
+	cp ${NEWRESOURCES}${NEWCSS_STYLESHEET} ${NEWHTMLDIR}
+	xsltproc --xinclude ${NEWSTRINGPARAMS} -o "${NEWHTMLDIR}/guide.html" "${NEWSTYLESHEET}" "${NEWSOURCEDIR}/guide.xml"
 
 all: html xhtml tidy
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070719/80ea0dc7/attachment.html


More information about the macports-changes mailing list