Changeset 10502


Ignore:
Timestamp:
Aug 20, 2008, 12:17:24 PM (11 years ago)
Author:
gb
Message:

Makefile.fedora, Makefile.macports: set a few parameters, then include
makefile-common

makefile-common: New file. Shared, non-platform-specific stuff.

makehtml: obsolete

Location:
trunk/source/doc/src
Files:
1 added
1 deleted
2 edited

Legend:

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

    r9490 r10502  
    3434export XML_CATALOG_FILES = xsl/catalog-fedora
    3535
    36 # The local stylesheet imports the generic stylesheets and
    37 # sets some custom parameters.
     36include makefile-common
    3837
    39 STYLESHEET = xsl/openmcl.xsl
    40 
    41 # Obtain a temporary ID to be used as the identifier of this invocation of
    42 # make.
    43 
    44 TEMP := build-$(shell date +%s)
    45 
    46 # Save the current directory for use in the tarfile target.
    47 
    48 CWD := $(shell pwd)
    49 
    50 # There's datestamps on the page; let's make sure they're in
    51 # UTC instead of local time.
    52 
    53 export TZ = UTC
    54 
    55 # Compute some targets.
    56 
    57 XMLFILES = $(wildcard *.xml)
    58 XSLFILES = $(shell find xsl -name "*.xsl")
    59 HTMLFILES = ccl-documentation.html
    60 
    61 # Save the xsltproc version string for use in debugging.
    62 
    63 XSLTPROCVERSION = $(shell $(XSLTPROC) --version | head -n 1)
    64 
    65 # Try to determine the svn revishion
    66 SVNREV = $(shell /usr/bin/svnversion)
    67 
    68 
    69 .PHONY: all clean distclean
    70 
    71 all: $(TEMP) $(HTMLFILES) distclean
    72 
    73 
    74 include makehtml
    75 
    76 install: $(HTMLFILES) distclean
    77         cp $(HTMLFILES) ../
    78 
    79 $(TEMP):
    80         mkdir $(TEMP)
    81 
    82 clean:
    83         rm -rf build-*
    84 
    85 distclean: clean
    86         rm -f *~
    87 
    88 # All this rigamarole is to make the pathnames stored in the tarfile
    89 # have a uniform prefix regardless of where the build directory actually
    90 # is.  Somebody, please tell me I have overlooked something obvious.
    91 
  • trunk/source/doc/src/Makefile.macports

    r9206 r10502  
    55# ideal.
    66
    7 # for Darwin, with DocBook installed via MacPorts
     7# for Linux (Fedora; other distros may require some tweaking.)
    88
    99# The pathname to the xsltproc executable.  Since most alternate
     
    1111# anything but xsltproc.
    1212
    13 XSLTPROC = /usr/bin/xsltproc
    14 
    15 # Try to determine the svn revishion
    16 SVNREV = $(shell /usr/bin/svnversion)
     13XSLTPROC = /opt/local/bin/xsltproc
    1714
    1815
     
    2421# are, you should make sure that the correct catalog file is being used
    2522# (see below), and, if so, that its contents are correct.
    26 #
    27 # --nonet can also be useful.
    28 #
    2923#EXTRAPARAMS= --load-trace
    30 EXTRAPARAMS=
     24EXTRAPARAMS= --xinclude --nonet
    3125
    3226# The catalog file tells the translator where to find XSL stylesheets on the
    33 # local system.  The choice here assumes that you've installed MacPorts in
    34 # the default location, and run "port install docbook-xml" and
    35 # "port install docbook-xsl" at some point.
    36 
    37 # If not, comment this out, and the translator will automagically
     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
    3831# look on the web for the stylesheets, instead.
    3932
    40 export XML_CATALOG_FILES = /opt/local/etc/xml/catalog
    4133
    42 # The local stylesheet imports the generic stylesheets and
    43 # sets some custom parameters.
     34export XML_CATALOG_FILES = xsl/catalog-macports
    4435
    45 STYLESHEET = xsl/openmcl.xsl
     36include makefile-common
    4637
    47 # Obtain a temporary ID to be used as the identifier of this invocation of
    48 # make.
    49 
    50 TEMP := build-$(shell date +%s)
    51 
    52 # Save the current directory for use in the tarfile target.
    53 
    54 CWD := $(shell pwd)
    55 
    56 # There's datestamps on the page; let's make sure they're in
    57 # UTC instead of local time.
    58 
    59 export TZ = UTC
    60 
    61 # Compute some targets.
    62 
    63 XMLFILES = $(wildcard *.xml)
    64 XSLFILES = $(shell find xsl -name "*.xsl")
    65 HTMLFILES = ccl-documentation.html
    66 
    67 # Save the xsltproc version string for use in debugging.
    68 
    69 XSLTPROCVERSION = $(shell $(XSLTPROC) --version | head -n 1)
    70 
    71 .PHONY: all clean distclean
    72 
    73 all: $(TEMP) $(HTMLFILES) distclean
    74 
    75 include makehtml
    76 
    77 install: $(HTMLFILES) distclean
    78         cp $(HTMLFILES) ../
    79 
    80 $(TEMP):
    81         mkdir $(TEMP)
    82 
    83 clean:
    84         rm -rf build-*
    85 
    86 distclean: clean
    87         rm -f *~
    88 
Note: See TracChangeset for help on using the changeset viewer.