From: Mark Cave-Ayland Date: Thu, 22 May 2008 14:34:32 +0000 (+0000) Subject: Update documentation build so that "make install" now works. Maybe this will fix... X-Git-Tag: 1.4.0b1~905 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfcdf664f3338c413bbf83e26923d08654f0dec4;p=postgis Update documentation build so that "make install" now works. Maybe this will fix the on-line website build? git-svn-id: http://svn.osgeo.org/postgis/trunk@2780 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.in b/configure.in index 064ede587..e280e6635 100644 --- a/configure.in +++ b/configure.in @@ -119,6 +119,13 @@ PGSQL_FE_CPPFLAGS=-I`$PGCONFIG --includedir` AC_SUBST([PGSQL_FE_LDFLAGS]) AC_SUBST([PGSQL_FE_CPPFLAGS]) +dnl Extract the documentation and man page directories +PGSQL_DOCDIR=`$PGCONFIG --docdir` +PGSQL_MANDIR=`$PGCONFIG --mandir` + +AC_SUBST([PGSQL_DOCDIR]) +AC_SUBST([PGSQL_MANDIR]) + dnl Ensure that we can parse libpq-fe.h CPPFLAGS_SAVE="$CPPFLAGS" diff --git a/doc/Makefile.in b/doc/Makefile.in index ff26e377b..104f41395 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -1,6 +1,13 @@ # # PostGIS documentation build Makefile # +# Written by Mark Cave-Ayland +# +# NOTE: We don't use a standard PGXS Makefile here since the DOCS target +# only allows files to be stored within contrib/ and we currently +# store documentation under contrib/postgis due to the possibility +# that we could produce a large number of files (think chunked HTML) +# XSLTPROC = @XSLTPROC@ XSLBASE = @XSLBASE@ @@ -16,6 +23,10 @@ XSLTPROC_HTMLOPTS = \ HTML_DOCBOOK_XSL=$(XSLBASE)/html/docbook.xsl CHUNK_HTML_DOCBOOK_XSL=$(XSLBASE)/html/chunk.xsl +# Directories for documentation and man pages +PGSQL_DOCDIR=@PGSQL_DOCDIR@ +PGSQL_MANDIR=@PGSQL_MANDIR@ + # If XSLTPROC was not found during configure, we cannot # build the documentation @@ -55,18 +66,18 @@ maintainer-clean: clean @rm -f html/*.html install: html/postgis.html man/shp2pgsql.1 man/pgsql2shp.1 - @mkdir -p $(DESTDIR)$(docdir)/postgis - @mkdir -p $(DESTDIR)$(mandir)/man1 - $(INSTALL_DATA) html/postgis.html $(DESTDIR)$(docdir)/postgis/postgis.html - $(INSTALL_DATA) ../README.postgis $(DESTDIR)$(docdir)/postgis/README.postgis - $(INSTALL_DATA) man/pgsql2shp.1 $(DESTDIR)$(mandir)/man1/pgsql2shp.1 - $(INSTALL_DATA) man/shp2pgsql.1 $(DESTDIR)$(mandir)/man1/shp2pgsql.1 + @mkdir -p $(PGSQL_DOCDIR)/postgis + @mkdir -p $(PGSQL_MANDIR)/man1 + cp html/postgis.html $(PGSQL_DOCDIR)/postgis/postgis.html + cp ../README.postgis $(PGSQL_DOCDIR)/postgis/README.postgis + cp man/pgsql2shp.1 $(PGSQL_MANDIR)/man1/pgsql2shp.1 + cp man/shp2pgsql.1 $(PGSQL_MANDIR)/man1/shp2pgsql.1 uninstall: - rm -f $(DESTDIR)$(docdir)/postgis/postgis.html - rm -f $(DESTDIR)$(docdir)/postgis/README.postgis - rm -f $(DESTDIR)$(mandir)/man1/shp2pgsql.1 - rm -f $(DESTDIR)$(mandir)/man1/pgsql2shp.1 + rm -f $(PGSQL_DOCDIR)/postgis/postgis.html + rm -f $(PGSQL_DOCDIR)/postgis/README.postgis + rm -f $(PGSQL_MANDIR)/man1/shp2pgsql.1 + rm -f $(PGSQL_MANDIR)/man1/pgsql2shp.1 requirements_not_met: @echo