Changeset 2613


Ignore:
Timestamp:
May 14, 2003, 4:04:23 PM (17 years ago)
Author:
michaelm
Message:

added more comments, some extra functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/guide/Makefile

    r2361 r2613  
    1 # $Id: Makefile,v 1.2 2003/03/25 07:44:41 michaelm Exp $
     1# $Id: Makefile,v 1.3 2003/05/14 16:04:23 michaelm Exp $
    22
    33# To build DarwinPorts  guide files from the source docbook xml.
    44# michaelm@opendarwin.org
    55
     6## Targets
     7#
     8# html  : Makes unformated, chunked html for xml
     9# xhtml : Makes unformated, chunked xhtml for 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.
     18# This Makefile assumes things have been installed using prefix, you may want
     19# to override some of the variables below to match your local installation.
     20
     21# To use local dtd catalogs you must first create the catalog, I currently assume
     22# the catalogs are in ${prefix}/etc/xml, if yours are elswhere you should alter
     23# the $SGML_CATALOG_FILES variable.
     24
    625# set XML_DEBUG_CATALOG= to see catalog debugging info
     26
     27
     28SOURCEDIR?=             xml
     29DOCBOOK_XSL?=           ${PREFIX}/share/xsl/docbook-xsl/1.55.0
     30HTMLDIR?=               html
     31XHTMLDIR?=              xhtml
     32STYLESHEET?=            ${DOCBOOK_XSL}/html/chunk.xsl
     33XSTYLESHEET?=           ${DOCBOOK_XSL}/xhtml/chunk.xsl
     34SGML_CATALOG_FILES?=    ${PREFIX}/etc/xml
     35XML_DEBUG_CATALOG?=
    736
    837.PHONY : all
    938.PHONY : clean
    10 .PHONY : install
     39#.PHONY : install
    1140.PHONY : html
    1241.PHONY : xhtml
     42.PHONY : check
     43.PHONY : tidy
    1344
    14 SOURCEDIR?=             xml
    15 DOCBOOK_XSL?=   ${PREFIX}/share/xsl/docbook-xsl/1.55.0
    16 HTMLDIR?=               html
    17 XHTMLDIR?=              xhtml
    18 STYLESHEET?=    ${DOCBOOK_XSL}/html/chunk.xsl
    19 XSTYLESHEET?=   ${DOCBOOK_XSL}/xhtml/chunk.xsl
    20 
     45check:
     46        xmllint --xinclude --noout "${SOURCEDIR}/guide.xml"
    2147
    2248html:
    23 
    2449        mkdir -p html
    2550        xsltproc --xinclude -o "${HTMLDIR}/" "${STYLESHEET}" "${SOURCEDIR}/guide.xml"
    2651       
    27 xhtml:
     52xhtml: 
    2853
    2954        mkdir -p xhtml
    3055        xsltproc --xinclude -o "${XHTMLDIR}/" "${XSTYLESHEET}" "${SOURCEDIR}/guide.xml"
    31        
    32 all: html xhtml
     56
     57all: html xhtml tidy
     58
     59tidy:
     60# This target will *only* work if you have installed the tidy program from
     61# http://tidy.sourceforge.net/ somewhere in your path.
     62
     63        -tidy -quiet -modify -indent ${HTMLDIR}/*
     64        -tidy -quiet -modify -indent -xml ${XHTMLDIR}/*
     65
     66clean:
     67        rm -fr html xhtml
    3368       
    3469include ../../base/Mk/dports.mk
Note: See TracChangeset for help on using the changeset viewer.