1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Generate index.html as the root file name of the documentation set,

rather than making index.html a symlink to the autogenerated name.
Fixes fatal problems with tar programs that don't handle symlinks
very well (MacOS X).

(The names user.html, admin.html, etc. are still available as make
targets, but they aren't packaged anymore.)

Use the manifest file that the stylesheets generate as the file list
for packaging.  Put graphics in the right place while building, not
while packaging, so you can actually look at them after building.
This commit is contained in:
Peter Eisentraut
2001-09-18 12:08:27 +00:00
parent 89fa551808
commit 4a4abd4232
4 changed files with 23 additions and 37 deletions

View File

@@ -1,16 +1,15 @@
# Postgres documentation makefile
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.21 2001/09/17 23:00:27 petere Exp $
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.22 2001/09/18 12:08:26 petere Exp $
subdir = doc/src
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
ZIPSUFFIX= gz
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
SRC= admin developer reference programmer tutorial user postgres
BOOKS = admin developer reference programmer tutorial user postgres
TARGETS= $(SRC:%=%.tar.$(ZIPSUFFIX))
TARGETS= $(BOOKS:%=%.tar.$(ZIPSUFFIX))
.PRECIOUS:
.PHONY: install all sources clean distclean
@@ -33,33 +32,12 @@ sources:
sources.tar:
$(TAR) -cf $@ sgml graphics
admin.tar developer.tar reference.tar user.tar:
$(addsuffix .tar, $(BOOKS)):
$(MAKE) -C sgml clean
$(MAKE) -C sgml $(basename $@).html
$(MAKE) -C sgml $(basename $@).html
cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.css
programmer.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml programmer.html
$(MAKE) -C sgml programmer.html
abssrcdir=`cd $(srcdir) && pwd`; \
cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.css -C $$abssrcdir/graphics catalogs.gif connections.gif
tutorial.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml tutorial.html
$(MAKE) -C sgml tutorial.html
abssrcdir=`cd $(srcdir) && pwd`; \
cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.css -C $$abssrcdir/graphics clientserver.gif
postgres.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml postgres.html
$(MAKE) -C sgml postgres.html
abssrcdir=`cd $(srcdir) && pwd`; \
cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.css -C $$abssrcdir/graphics catalogs.gif clientserver.gif connections.gif
$(MAKE) -C sgml $(basename $@).html JADEFLAGS='-V html-manifest'
cd sgml && $(TAR) -c -f ../$@ -T HTML.manifest *.gif *.css
man.tar:
$(MAKE) -C sgml man
$(TAR) -cf $@ -C sgml man1 man$(sqlmansect_dummy)
$(TAR) -c -f $@ -C sgml man1 man$(sqlmansect_dummy)