]> granicus.if.org Git - postgis/commitdiff
cleanups - version file source
authorSandro Santilli <strk@keybit.net>
Fri, 4 Mar 2005 19:34:47 +0000 (19:34 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 4 Mar 2005 19:34:47 +0000 (19:34 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1493 b70326c6-7e19-0410-871a-916f4a2858ee

doc/Makefile

index e1609704d299f8deb9dcb4caad20ad8313716596..a573efccb69fc7ea2acabb50125c209fe5ef838f 100644 (file)
@@ -1,15 +1,20 @@
 COMMONOPTS = -f docbook -b html -e no-valid
-LAST_RELEASE_VERSION = 1.0.0
+
+# fetch version numbers from central repository
+include ../Version.config
+
+LAST_RELEASE_VERSION = $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSION)
 
 XSLBASE?=/usr/share/sgml/docbook/xsl-stylesheets
 
 all: html
 
-postgis-out.xml: postgis.xml
+postgis-out.xml: postgis.xml ../Version.config
        cat $< | sed "s/@@LAST_RELEASE_VERSION@@/$(LAST_RELEASE_VERSION)/g" > $@
 
 chunked-html: postgis-out.xml
        xsltproc \
+               --output html/ \
                --param shade.verbatim 1 \
                --param chunk.section.depth 0 \
                --param section.autolabel 1 \
@@ -19,7 +24,7 @@ chunked-html: postgis-out.xml
                $(XSLBASE)/html/chunk.xsl \
                $<
 
-html: postgis-out.xml
+html/postgis.html: postgis-out.xml
        xsltproc \
                --output html/postgis.html \
                --param shade.verbatim 1 \
@@ -30,6 +35,8 @@ html: postgis-out.xml
                $(XSLBASE)/html/docbook.xsl \
                $<
 
+html: html/postgis.html
+
 postgis.fo: postgis-out.xml
        xsltproc \
                --output $@ \
@@ -56,3 +63,8 @@ clean:
                postgis.out \
                postgis.log
 
+maintainer-clean: clean
+       @rm -f html/*.html
+
+
+.PHONY: html