source: trunk/doc/guide/Makefile @ 2360

Last change on this file since 2360 was 2359, checked in by michaelm, 17 years ago

Makefile to build documentation, will build xhtml or html, or both.

Requires xsltproc and docbook-xsl

TODO: use xml catalog to make rendering faster, provide customised xsl, including one

suitable for generating opendarwin style php pages. Some error checking would be nice

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 671 bytes
Line 
1# $Id: Makefile,v 1.1 2003/03/25 07:19:34 michaelm Exp $
2
3# To build DarwinPorts  guide files from the source docbook xml.
4# michaelm@opendarwin.org
5
6# set XML_DEBUG_CATALOG= to see catalog debugging info
7
8.PHONY : all
9.PHONY : clean
10.PHONY : install
11.PHONY : html
12.PHONY : xhtml
13
14
15SOURCEDIR?=             xml
16DOCBOOK_XSL?=   ${PREFIX}/share/xsl/docbook-xsl/1.55.0
17HTMLDIR?=               html
18STYLESHEET?=    ${DOCBOOK_XSL}/html/chunk.xsl
19
20
21html:
22
23        mkdir -p html
24        xsltproc --xinclude -o "${HTMLDIR}/" "${STYLESHEET}" "${SOURCEDIR}/guide.xml"
25       
26xhtml:
27
28        mkdir -p xhtml
29        xsltproc --xinclude -o "${XHTMLDIR}/" "${STYLESHEET}" "${SOURCEDIR}/guide.xml"
30       
31all: html xhtml
32
33include ../../base/Mk/dports.mk
Note: See TracBrowser for help on using the repository browser.