source: trunk/doc/guide/Makefile @ 3070

Last change on this file since 3070 was 3070, checked in by fkr, 17 years ago

Bug: #705
Submitted by: wb@… (Will Barton)
Reviewed by:
Approved by:
Obtained from:

documentation of the new mirror_sites api for the guide.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.0 KB
Line 
1# $Id: Makefile,v 1.7 2003/07/20 17:00:51 fkr Exp $
2
3# To build DarwinPorts  guide files from the source docbook xml.
4# michaelm@opendarwin.org
5
6## Targets
7#
8# html  : Makes unformated, chunked html from xml
9# xhtml : Makes unformated, chunked xhtml from xml
10# tidy  : Tidies (formats, indents) xhtml and html
11# clean : Deletes html and xhtml
12# all   : html, xhtml and tidy
13
14## Details and Caveats
15#
16# Requires docbook-xsl and docbook-xml ports to have been installed (or the
17# stylesheets and dtds to have been installed elswhere, and requires the
18# libxslt port to be installed.
19
20# This Makefile assumes things have been installed using prefix, you may want
21# to override some of the variables below to match your local installation.
22
23# To use local dtd catalogs you must first create the catalog, I currently assume
24# the catalogs are in ${prefix}/etc/xml, if yours are elswhere you should alter
25# the $XML_CATALOG_FILES variable.
26
27# set XML_DEBUG_CATALOG= to see catalog debugging info
28
29SOURCEDIR?=             xml
30DOCBOOK_XSL?=           ${prefix}/share/xsl/docbook-xsl/1.61.0
31HTMLDIR?=               html
32XHTMLDIR?=              xhtml
33STYLESHEET?=            ${DOCBOOK_XSL}/html/chunk.xsl
34XSTYLESHEET?=           ${DOCBOOK_XSL}/xhtml/chunk.xsl
35XML_CATALOG_FILES?=    ${prefix}/etc/xml/catalog
36XML_DEBUG_CATALOG?=
37
38.PHONY : all
39.PHONY : clean
40#.PHONY : install
41.PHONY : html
42.PHONY : xhtml
43.PHONY : check
44.PHONY : tidy
45
46check:
47        xmllint --xinclude --noout "${SOURCEDIR}/guide.xml"
48
49html:
50        mkdir -p ${HTMLDIR}
51        xsltproc --xinclude -o "${HTMLDIR}/" "${STYLESHEET}" "${SOURCEDIR}/guide.xml"
52       
53xhtml: 
54        mkdir -p ${XHTMLDIR}
55        xsltproc --xinclude -o "${XHTMLDIR}/" "${XSTYLESHEET}" "${SOURCEDIR}/guide.xml"
56
57all: html xhtml tidy
58
59tidy:
60# This target will *only* work if you have installed the www/tidy port
61# or if have tidy from http://tidy.sourceforge.net/ installed somewhere
62# in your path.
63
64        -tidy -quiet -modify -indent ${HTMLDIR}/*
65        -tidy -quiet -modify -indent -xml ${XHTMLDIR}/*
66
67clean:
68        rm -fr ${HTMLDIR} ${XHTMLDIR}
69       
70include ../../base/Mk/dports.autoconf.mk
Note: See TracBrowser for help on using the repository browser.