Changeset 12396


Ignore:
Timestamp:
Jul 10, 2009, 12:56:15 PM (10 years ago)
Author:
gb
Message:

make-fu, maybe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/doc/src/makefile-common

    r10802 r12396  
    11# -*- coding: unix -*-
    22
    3 # Try to determine the svn revishion
    4 SVNREV = $(shell /usr/bin/svnversion)
     3ifdef COMMIT
     4SVN=/usr/bin/svn
     5else
     6SVN=/bin/true
     7endif
     8
    59
    610# The local stylesheet imports the generic stylesheets and
     
    2832XSLFILES = $(shell find xsl -name "*.xsl")
    2933HTMLFILES = ccl-documentation.html
     34PARENT = ../ccl-documentation.html
    3035
    3136# Save the xsltproc version string for use in debugging.
     
    4146
    4247$(HTMLFILES): $(XMLFILES)  $(XSLFILES)
     48        rm -rf build-* *~
    4349        $(XSLTPROC) \
    4450                --xinclude \
     
    5561        mv $(TEMP)/*.html $(@D)/
    5662
     63${PARENT}: ${HTMLFILES}
     64        cp ${HTMLFILES} ${PARENT}
     65        $(CCL) -b -n -l ../doc-splitter -e '(doc-splitter:split-doc-file "ccl-documentation.html" "../manual/")' </dev/null
     66        (cd .. ; $(SVN) commit -m "updated" ccl-documentation.html)
    5767
    5868all: ${TEMP} ${HTMLFILES} distclean
     
    6070
    6171
    62 install: $(HTMLFILES) distclean
    63         cp $(HTMLFILES) ../
    64         $(CCL) -b -n -l ../doc-splitter -e '(doc-splitter:split-doc-file "ccl-documentation.html" "../manual/")' </dev/null
     72install: $(PARENT)
     73
    6574
    6675$(TEMP):
Note: See TracChangeset for help on using the changeset viewer.