Changeset 8574


Ignore:
Timestamp:
Feb 23, 2008, 4:12:41 AM (12 years ago)
Author:
rme
Message:

Yet more makefile fiddling.

Makefile.macports is for Mac OS X users. It assumes that you will install
MacPorts?, and use "port install docbook-xsl" and "port install docbook-xml".

Location:
trunk/source/doc/src
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/doc/src/Makefile.fedora

    r8570 r8574  
    5555# Compute some targets.
    5656
    57 #XMLFILES = $(shell find . -name "*.xml")
    58 XMLFILES = [0-9][0-9]-*.xml ccl-documentation.xml
     57XMLFILES = $(wildcard [0-9][0-9]-*.xml) ccl-documentation.xml
    5958XSLFILES = $(shell find xsl -name "*.xsl")
    6059#HTMLFILES = $(patsubst %.xml,%.html, $(XMLFILES))
  • trunk/source/doc/src/Makefile.macports

    r8570 r8574  
    1111# anything but xsltproc.
    1212
    13 XSLTPROC = /opt/local/bin/xsltproc
     13XSLTPROC = /usr/bin/xsltproc
    1414
    1515
     
    2121# are, you should make sure that the correct catalog file is being used
    2222# (see below), and, if so, that its contents are correct.
     23#
     24# --nonet can also be useful.
     25#
    2326#EXTRAPARAMS= --load-trace
    24 EXTRAPARAMS= --xinclude --nonet
     27EXTRAPARAMS=
    2528
    2629# The catalog file tells the translator where to find XSL stylesheets on the
    27 # local system.  The first choice here is what should be used for builds
    28 # which are going to take place on the clozure.com server.  The second is
    29 # for when you have installed docbook on OS X using the fink package manager.
    30 # If neither applies, comment both out, and the translator will automagically
     30# local system.  The choice here assumes that you've installed MacPorts in
     31# the default location, and run "port install docbook-xml" and
     32# "port install docbook-xsl" at some point.
     33
     34# If not, comment this out, and the translator will automagically
    3135# look on the web for the stylesheets, instead.
    3236
    33 
    34 export XML_CATALOG_FILES = xsl/catalog-macports
     37export XML_CATALOG_FILES = /opt/local/etc/xml/catalog
    3538
    3639# The local stylesheet imports the generic stylesheets and
     
    5558# Compute some targets.
    5659
    57 #XMLFILES = $(shell find . -name "*.xml")
    58 XMLFILES = [0-9][0-9]-*.xml ccl-documentation.xml
     60XMLFILES = $(wildcard [0-9][0-9]-*.xml) ccl-documentation.xml
    5961XSLFILES = $(shell find xsl -name "*.xsl")
    60 #HTMLFILES = $(patsubst %.xml,%.html, $(XMLFILES))
    6162HTMLFILES = ccl-documentation.html
    6263
     
    7172include makehtml
    7273
    73 install: $(HTMLFILES)
     74install: $(HTMLFILES) distclean
    7475        cp $(HTMLFILES) ../HTML
    7576
     
    8182
    8283distclean: clean
    83         -find . -type f -name "*~" | xargs rm
     84        rm -f *~
    8485
    85 # All this rigamarole is to make the pathnames stored in the tarfile
    86 # have a uniform prefix regardless of where the build directory actually
    87 # is.  Somebody, please tell me I have overlooked something obvious.
    88 
  • trunk/source/doc/src/makehtml

    r8558 r8574  
    1 %.html:%.xml $(XSLFILES) Makefile.fedora
     1%.html:%.xml $(XSLFILES)
    22        $(XSLTPROC) \
     3                --xinclude \
    34                --stringparam root.filename $(basename $(@F)) \
    45                --stringparam base.dir $(TEMP)/ \
Note: See TracChangeset for help on using the changeset viewer.