head	1.37;
access;
symbols
	REL9_0_0:1.37
	REL9_1_ALPHA1:1.37
	REL9_0_RC1:1.37
	REL9_0_BETA4:1.37
	REL9_0_STABLE:1.37.0.12
	REL9_0_BETA3:1.37
	REL9_0_BETA2:1.37
	REL7_4_29:1.31
	REL8_0_25:1.32
	REL8_1_21:1.32
	REL8_2_17:1.33
	REL8_3_11:1.33
	REL8_4_4:1.35
	REL9_0_BETA1:1.37
	REL9_0_ALPHA5_BRANCH:1.37.0.10
	REL9_0_ALPHA5:1.37
	REL7_4_28:1.31
	REL8_0_24:1.32
	REL8_1_20:1.32
	REL8_2_16:1.33
	REL8_3_10:1.33
	REL8_4_3:1.35
	REL9_0_ALPHA4:1.37
	REL9_0_ALPHA4_BRANCH:1.37.0.8
	REL8_5_ALPHA3:1.37
	REL8_5_ALPHA3_BRANCH:1.37.0.6
	REL7_4_27:1.31
	REL8_0_23:1.32
	REL8_1_19:1.32
	REL8_2_15:1.33
	REL8_3_9:1.33
	REL8_4_2:1.35
	REL8_5_ALPHA2:1.37
	REL8_5_ALPHA2_BRANCH:1.37.0.4
	REL7_4_26:1.31
	REL8_0_22:1.32
	REL8_1_18:1.32
	REL8_2_14:1.33
	REL8_3_8:1.33
	REL8_4_1:1.35
	REL8_5_ALPHA1:1.37
	REL8_5_ALPHA1_BRANCH:1.37.0.2
	REL8_4_STABLE:1.35.0.2
	REL8_4_0:1.35
	REL8_4_RC2:1.35
	REL8_4_RC1:1.35
	REL8_4_BETA2:1.35
	REL8_4_BETA1:1.35
	REL7_4_25:1.31
	REL8_0_21:1.32
	REL8_1_17:1.32
	REL8_2_13:1.33
	REL8_3_7:1.33
	REL7_4_24:1.31
	REL8_0_20:1.32
	REL8_1_16:1.32
	REL8_2_12:1.33
	REL8_3_6:1.33
	REL7_4_23:1.31
	REL8_0_19:1.32
	REL8_1_15:1.32
	REL8_2_11:1.33
	REL8_3_5:1.33
	REL7_4_22:1.31
	REL8_0_18:1.32
	REL8_1_14:1.32
	REL8_2_10:1.33
	REL8_3_4:1.33
	REL7_4_21:1.31
	REL8_0_17:1.32
	REL8_1_13:1.32
	REL8_2_9:1.33
	REL8_3_3:1.33
	REL7_4_20:1.31
	REL8_0_16:1.32
	REL8_1_12:1.32
	REL8_2_8:1.33
	REL8_3_2:1.33
	REL8_2_7:1.33
	REL8_3_1:1.33
	REL8_3_STABLE:1.33.0.4
	REL8_3_0:1.33
	REL8_3_RC2:1.33
	REL7_3_21:1.29
	REL7_4_19:1.31
	REL8_0_15:1.32
	REL8_1_11:1.32
	REL8_2_6:1.33
	REL8_3_RC1:1.33
	REL8_3_BETA4:1.33
	REL8_3_BETA3:1.33
	REL8_3_BETA2:1.33
	REL8_3_BETA1:1.33
	REL7_3_20:1.29
	REL7_4_18:1.31
	REL8_0_14:1.32
	REL8_1_10:1.32
	REL8_2_5:1.33
	REL7_3_19:1.29
	REL7_4_17:1.31
	REL8_0_13:1.32
	REL8_1_9:1.32
	REL8_2_4:1.33
	REL8_0_12:1.32
	REL8_1_8:1.32
	REL8_2_3:1.33
	REL7_3_18:1.29
	REL7_4_16:1.31
	REL8_0_11:1.32
	REL8_1_7:1.32
	REL8_2_2:1.33
	REL8_0_10:1.32
	REL8_1_6:1.32
	REL8_2_1:1.33
	REL7_4_15:1.31
	REL7_3_17:1.29
	REL8_2_STABLE:1.33.0.2
	REL8_2_0:1.33
	REL8_2_RC1:1.32
	REL8_2_BETA3:1.32
	REL8_2_BETA2:1.32
	REL8_1_5:1.32
	REL8_0_9:1.32
	REL7_4_14:1.31
	REL7_3_16:1.29
	REL8_2_BETA1:1.32
	REL7_3_15:1.29
	REL7_4_13:1.31
	REL8_0_8:1.32
	REL8_1_4:1.32
	REL7_3_14:1.29
	REL7_4_12:1.31
	REL8_0_7:1.32
	REL8_1_3:1.32
	REL7_3_13:1.29
	REL7_4_11:1.31
	REL8_0_6:1.32
	REL8_1_2:1.32
	REL7_3_12:1.29
	REL7_4_10:1.31
	REL8_0_5:1.32
	REL8_1_1:1.32
	REL8_1_STABLE:1.32.0.6
	REL8_1_0:1.32
	REL8_1_0RC1:1.32
	REL8_1_0BETA4:1.32
	REL8_1_0BETA3:1.32
	REL7_3_11:1.29
	REL7_4_9:1.31
	REL8_0_4:1.32
	REL8_1_0BETA2:1.32
	REL8_1_0BETA1:1.32
	REL7_2_8:1.28
	REL7_3_10:1.29
	REL7_4_8:1.31
	REL8_0_3:1.32
	REL8_0_2:1.32
	REL7_2_7:1.28
	REL7_3_9:1.29
	REL7_4_7:1.31
	REL8_0_1:1.32
	REL8_0_STABLE:1.32.0.4
	REL8_0_0:1.32.0.2
	REL8_0_0RC5:1.32
	REL8_0_0RC4:1.32
	REL8_0_0RC3:1.32
	REL8_0_0RC2:1.32
	REL8_0_0RC1:1.32
	REL8_0_0BETA5:1.32
	REL8_0_0BETA4:1.32
	REL7_4_6:1.31
	REL7_3_8:1.29
	REL7_2_6:1.28
	REL8_0_0BETA3:1.32
	REL8_0_0BETA2:1.32
	REL7_2_5:1.28
	REL7_4_5:1.31
	REL7_3_7:1.29
	REL7_4_4:1.31
	REL8_0_0BETA1:1.32
	REL7_4_3:1.31
	REL7_4_2:1.31
	REL7_3_6:1.29
	REL7_4_1:1.31
	REL7_3_5:1.29
	REL7_4:1.31
	REL7_4_RC2:1.31
	REL7_4_STABLE:1.31.0.4
	REL7_4_RC1:1.31
	REL7_4_BETA5:1.31
	REL7_4_BETA4:1.31
	REL7_4_BETA3:1.31
	REL7_4_BETA2:1.31
	WIN32_DEV:1.31.0.2
	REL7_4_BETA1:1.31
	REL7_3_4:1.29
	REL7_3_2:1.29
	REL7_2_4:1.28
	REL7_3_STABLE:1.29.0.2
	REL7_2_3:1.28
	REL7_2_STABLE:1.28.0.2
	REL7_2:1.28
	REL7_2_RC2:1.28
	REL7_2_RC1:1.28
	REL7_2_BETA5:1.28
	REL7_2_BETA4:1.28
	REL7_2_BETA3:1.25
	REL7_2_BETA2:1.25
	REL7_2_BETA1:1.25
	REL7_1_2:1.18
	REL7_1_STABLE:1.18.0.2
	REL7_1_BETA:1.15
	REL7_1_BETA3:1.15
	REL7_1_BETA2:1.15
	REL7_1:1.18
	REL7_0_PATCHES:1.9.0.2
	REL7_0:1.9
	REL6_5_PATCHES:1.7.0.2
	REL6_5:1.7
	REL6_4:1.5.0.2
	release-6-3:1.2;
locks; strict;
comment	@# @;


1.37
date	2009.08.09.22.47.59;	author petere;	state Exp;
branches;
next	1.36;

1.36
date	2009.08.05.19.31.50;	author alvherre;	state Exp;
branches;
next	1.35;

1.35
date	2008.11.14.10.43.59;	author petere;	state Exp;
branches;
next	1.34;

1.34
date	2008.11.14.10.22.45;	author petere;	state Exp;
branches;
next	1.33;

1.33
date	2006.12.02.01.25.50;	author petere;	state Exp;
branches;
next	1.32;

1.32
date	2003.11.29.19.51.36;	author pgsql;	state Exp;
branches;
next	1.31;

1.31
date	2003.03.25.16.15.35;	author petere;	state Exp;
branches;
next	1.30;

1.30
date	2002.11.30.00.22.39;	author tgl;	state Exp;
branches;
next	1.29;

1.29
date	2002.07.28.15.19.59;	author petere;	state Exp;
branches;
next	1.28;

1.28
date	2001.11.25.22.17.27;	author petere;	state Exp;
branches;
next	1.27;

1.27
date	2001.11.23.17.56.13;	author momjian;	state Exp;
branches;
next	1.26;

1.26
date	2001.11.23.17.15.30;	author momjian;	state Exp;
branches;
next	1.25;

1.25
date	2001.09.30.19.18.29;	author momjian;	state Exp;
branches;
next	1.24;

1.24
date	2001.09.30.19.09.57;	author momjian;	state Exp;
branches;
next	1.23;

1.23
date	2001.09.30.16.01.12;	author petere;	state Exp;
branches;
next	1.22;

1.22
date	2001.09.18.12.08.26;	author petere;	state Exp;
branches;
next	1.21;

1.21
date	2001.09.17.23.00.27;	author petere;	state Exp;
branches;
next	1.20;

1.20
date	2001.09.14.20.37.54;	author petere;	state Exp;
branches;
next	1.19;

1.19
date	2001.08.29.19.14.39;	author petere;	state Exp;
branches;
next	1.18;

1.18
date	2001.03.27.16.34.14;	author momjian;	state Exp;
branches;
next	1.17;

1.17
date	2001.03.25.08.32.24;	author petere;	state Exp;
branches;
next	1.16;

1.16
date	2001.02.17.16.47.57;	author tgl;	state Exp;
branches;
next	1.15;

1.15
date	2000.11.24.17.44.21;	author petere;	state Exp;
branches;
next	1.14;

1.14
date	2000.10.08.13.24.08;	author petere;	state Exp;
branches;
next	1.13;

1.13
date	2000.09.12.03.47.36;	author thomas;	state Exp;
branches;
next	1.12;

1.12
date	2000.09.05.18.45.38;	author petere;	state Exp;
branches;
next	1.11;

1.11
date	2000.08.31.16.09.16;	author petere;	state Exp;
branches;
next	1.10;

1.10
date	2000.07.16.14.50.35;	author petere;	state Exp;
branches;
next	1.9;

1.9
date	99.08.08.15.10.21;	author thomas;	state Exp;
branches;
next	1.8;

1.8
date	99.07.14.20.31.42;	author thomas;	state Exp;
branches;
next	1.7;

1.7
date	99.07.06.17.13.50;	author thomas;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	99.01.07.06.19.17;	author thomas;	state Exp;
branches;
next	1.5;

1.5
date	98.10.31.09.35.19;	author thomas;	state Exp;
branches;
next	1.4;

1.4
date	98.05.09.22.32.03;	author thomas;	state Exp;
branches;
next	1.3;

1.3
date	98.04.05.17.07.32;	author thomas;	state Exp;
branches;
next	1.2;

1.2
date	98.03.01.20.47.20;	author thomas;	state Exp;
branches;
next	1.1;

1.1
date	98.03.01.08.14.36;	author thomas;	state Exp;
branches;
next	;

1.7.2.1
date	99.07.16.06.03.48;	author thomas;	state Exp;
branches;
next	;


desc
@@


1.37
log
@Ship documentation without intermediate tarballs

Documentation files in HTML and man formats are now prepared for
distribution using the distprep make target, like everything else.  They
are placed in doc/src/sgml/html and manX and installed from there by
make install, if present.  The business with the tarballs in the tarball
is gone.
@
text
@# $PostgreSQL: pgsql/doc/src/Makefile,v 1.36 2009/08/05 19:31:50 alvherre Exp $

subdir = doc/src
top_builddir = ../..
include $(top_builddir)/src/Makefile.global

all distprep html man install installdirs uninstall clean distclean maintainer-clean:
	$(MAKE) -C sgml $@@
@


1.36
log
@Fix manpages related to SPI functions.

This patch adds declaration so that they end up in section 3, and adds
them to the Makefiles to install them.

Also, some synopses needed reflowing so that they look nice in 80-column
terminals.
@
text
@d1 1
a1 2
# Postgres documentation makefile
# $PostgreSQL: pgsql/doc/src/Makefile,v 1.35 2008/11/14 10:43:59 petere Exp $
d7 1
a7 2
clean distclean maintainer-clean:
	rm -f *.tar *.gz
a8 8

postgres.tar:
	$(MAKE) -C sgml html JADEFLAGS='-V html-manifest'
	cd sgml && $(TAR) -cf ../$@@ `cat HTML.manifest` `echo *.gif | grep -v '\*'` *.css

man.tar:
	$(MAKE) -C sgml man
	$(TAR) -cf $@@ -C sgml man1 man3 man7
@


1.35
log
@Since doc/src/sgml already builds the HTML docs twice to resolve index
entries, we don't have to do two builds here as well.
@
text
@d2 1
a2 1
# $PostgreSQL: pgsql/doc/src/Makefile,v 1.34 2008/11/14 10:22:45 petere Exp $
d18 1
a18 1
	$(TAR) -cf $@@ -C sgml man1 man7
@


1.34
log
@Set SQL man pages to be section 7 by default, and only transform them to
another section if required by the platform (instead of the old way of
building them in section "l" and always transforming them to the
platform-specific section).

This speeds up the installation on common platforms, and it avoids some
funny business with the man page tools and build process.
@
text
@d2 1
a2 1
# $PostgreSQL: pgsql/doc/src/Makefile,v 1.33 2006/12/02 01:25:50 petere Exp $
a11 1
# Build twice to resolve index entries
a12 2
	$(MAKE) -C sgml clean
	$(MAKE) -C sgml html
@


1.33
log
@Don't ship spi_* man pages.  (We don't do that anyway, but now it's automatic.)
@
text
@d2 1
a2 1
# $PostgreSQL: pgsql/doc/src/Makefile,v 1.32 2003/11/29 19:51:36 pgsql Exp $
d21 1
a21 2
	rm sgml/man$(sqlmansect_dummy)/spi_*
	$(TAR) -cf $@@ -C sgml man1 man$(sqlmansect_dummy)
@


1.32
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d2 1
a2 1
# $PostgreSQL: /cvsroot/pgsql-server/doc/src/Makefile,v 1.31 2003/03/25 16:15:35 petere Exp $
d21 1
@


1.31
log
@Merge documentation into one book.  (Build with "make html".)  Replace
vague cross-references with real links.
@
text
@d2 1
a2 1
# $Header: /cvsroot/pgsql-server/doc/src/Makefile,v 1.30 2002/11/30 00:22:39 tgl Exp $
@


1.30
log
@Make install and clean targets behave more normally.
@
text
@d2 1
a2 1
# $Header: /cvsroot/pgsql-server/doc/src/Makefile,v 1.29 2002/07/28 15:19:59 petere Exp $
a7 12
ZIPSUFFIX= gz

BOOKS = admin developer reference programmer tutorial user  postgres

TARGETS= $(BOOKS:%=%.tar.$(ZIPSUFFIX))

.PRECIOUS:
.PHONY: install all sources clean distclean maintainer-clean

install: all
	cp -f *.$(ZIPSUFFIX) ..

d9 1
a9 1
	rm -f *.tar *.$(ZIPSUFFIX)
a11 8
all: $(TARGETS)

sources:
	$(MAKE) sources.tar.$(ZIPSUFFIX)

sources.tar:
	$(TAR) -cf $@@ sgml graphics

d13 1
a13 1
$(addsuffix .tar, $(BOOKS)):
d15 2
a16 2
	$(MAKE) -C sgml $(basename $@@).html
	$(MAKE) -C sgml $(basename $@@).html JADEFLAGS='-V html-manifest'
@


1.29
log
@Clean documentation subtree during make clean.
@
text
@d2 1
a2 1
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.28 2001/11/25 22:17:27 petere Exp $
d15 1
a15 1
.PHONY: install all sources clean distclean
d17 2
a18 3
install:
	$(MAKE) all
	(mv -f *.$(ZIPSUFFIX) ..)
d21 1
@


1.28
log
@Fix comment
@
text
@d2 1
a2 1
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.27 2001/11/23 17:56:13 momjian Exp $
d21 2
a22 5
clean:
	$(MAKE) -C sgml clean

distclean:
	$(MAKE) -C sgml distclean
@


1.27
log
@Improve wording.
@
text
@d2 1
a2 1
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.26 2001/11/23 17:15:30 momjian Exp $
d35 1
a37 1
	# build index entries first
@


1.26
log
@Document index entries are built first.
@
text
@d2 1
a2 1
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.25 2001/09/30 19:18:29 momjian Exp $
d37 1
a37 1
	# make index entries first
@


1.25
log
@Change tar -T file to tar `cat file` for BSD tar.
@
text
@d2 1
a2 1
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.24 2001/09/30 19:09:57 momjian Exp $
d37 1
@


1.24
log
@Change tar -c -f to -cf for BSD tar.
@
text
@d2 1
a2 1
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.23 2001/09/30 16:01:12 petere Exp $
d39 1
a39 1
	cd sgml && $(TAR) -cf ../$@@ -T HTML.manifest `echo *.gif | grep -v '\*'` *.css
@


1.23
log
@Fix *.gif expansion to be empty when no gif files are used.
@
text
@d2 1
a2 1
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.22 2001/09/18 12:08:26 petere Exp $
d39 1
a39 1
	cd sgml && $(TAR) -c -f ../$@@ -T HTML.manifest `echo *.gif | grep -v '\*'` *.css
d43 1
a43 1
	$(TAR) -c -f $@@ -C sgml man1 man$(sqlmansect_dummy)
@


1.22
log
@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.
@
text
@d2 1
a2 1
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.21 2001/09/17 23:00:27 petere Exp $
d39 1
a39 1
	cd sgml && $(TAR) -c -f ../$@@ -T HTML.manifest *.gif *.css
@


1.21
log
@Unify the zip rules and variables.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/Makefile,v 1.20 2001/09/14 20:37:54 petere Exp $
a8 1
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
d10 1
a10 1
SRC= admin developer reference programmer tutorial user  postgres
d12 1
a12 1
TARGETS= $(SRC:%=%.tar.$(ZIPSUFFIX))
d35 1
a35 1
admin.tar developer.tar reference.tar user.tar:
d38 2
a39 23
	$(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
d43 1
a43 1
	$(TAR) -cf $@@ -C sgml man1 man$(sqlmansect_dummy)
@


1.20
log
@Some formatting changes, add CSS stylesheet.  Include indexes in
documentation tarball builds.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/Makefile,v 1.19 2001/08/29 19:14:39 petere Exp $
a7 2
TAR= tar
ZIP= gzip
a65 7

# Generic production rules

# Compressed file

%.$(ZIPSUFFIX):	%
	$(ZIP) -f $<
@


1.19
log
@Install the SQL command man pages into a section appropriate for each
system.  Some systems did not understand the 'l' section, and in general
it wasn't entirely appropriate.

On SCO OpenServer, the man pages won't be installed at all until someone
figures out their man system.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/Makefile,v 1.18 2001/03/27 16:34:14 momjian Exp $
d41 2
a42 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html
d47 1
d49 1
a49 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html -C $$abssrcdir/graphics catalogs.gif connections.gif
d54 1
d56 1
a56 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html -C $$abssrcdir/graphics clientserver.gif
d61 1
d63 1
a63 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html -C $$abssrcdir/graphics catalogs.gif clientserver.gif connections.gif
@


1.18
log
@> Kinda looks like Ian broke the compile-in-source-dir case while
> making the compile-in-separate-dir case work.  Tut tut.

Yes.  My apologies.  This patch is one way to fix things.

Ian
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/Makefile,v 1.17 2001/03/25 08:32:24 petere Exp $
d63 1
a63 1
	$(TAR) -cf $@@ -C sgml man1 manl
@


1.17
log
@Allow building documentation outside source tree.
from Ian Lance Taylor
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/Makefile,v 1.16 2001/02/17 16:47:57 tgl Exp $
d46 2
a47 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html -C `cd $(srcdir) && pwd`/graphics catalogs.gif connections.gif
d52 2
a53 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html -C `cd $(srcdir) && pwd`/graphics clientserver.gif
d58 2
a59 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html -C `cd $(srcdir) && pwd`/graphics catalogs.gif clientserver.gif connections.gif
@


1.16
log
@No more .htm files, so don't try to add them to the doc tarballs.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/Makefile,v 1.15 2000/11/24 17:44:21 petere Exp $
d46 1
a46 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html -C ../graphics catalogs.gif connections.gif
d51 1
a51 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html -C ../graphics clientserver.gif
d56 1
a56 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html -C ../graphics catalogs.gif clientserver.gif connections.gif
@


1.15
log
@Revive Reference Manual, remove reference pages from User's Guide.

Make version.sgml the central place for updating version numbers in the
documentation.  Document titles now contain the version number of the
release they belong to.

filelist.sgml is the central (and only) place to declare system entities
(i.e., sgml files).  No longer a need to declare them in each document
header.

There is no longer any need to maintain duplicate chapter lists in
postgres.sgml and user/admin/etc.sgml, everything is build from the same
sources.  Some parameter entities allow for different text to be included
when the integrated or a single doc set is generated, which eliminates the
problems that had caused this to fail in the past.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/Makefile,v 1.14 2000/10/08 13:24:08 petere Exp $
d41 1
a41 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm
d46 1
a46 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif connections.gif
d51 1
a51 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm -C ../graphics clientserver.gif
d56 1
a56 1
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif clientserver.gif connections.gif
@


1.14
log
@Split out Developer's from Programmer's guide.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/Makefile,v 1.13 2000/09/12 03:47:36 thomas Exp $
d6 1
a6 1
-include $(top_builddir)/src/Makefile.global
d13 1
a13 1
SRC= admin postgres programmer tutorial user developer
d38 1
a38 1
admin.tar:
d40 1
a40 6
	$(MAKE) -C sgml admin.html
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm

developer.tar:
	$(MAKE) -C sgml clean
	$(MAKE) -C sgml developer.html
a51 5

user.tar:
	$(MAKE) -C sgml clean
	$(MAKE) -C sgml user.html
	cd sgml && $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm
@


1.13
log
@Define ZIP rather than GZIP.
Define ZIPSUFFIX to allow substitution of something other than gzip.
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/Makefile,v 1.12 2000/09/05 18:45:38 petere Exp $
d13 1
a13 1
SRC= admin postgres programmer tutorial user
d36 1
a36 1
	($(TAR) -cf $@@ sgml graphics)
d41 1
a41 1
	(cd sgml; $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm -C ../graphics layout.gif)
d43 1
a43 1
installation.tar:
d45 2
a46 7
	$(MAKE) -C sgml installation.html
	(cd sgml; $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm)

postgres.tar:
	$(MAKE) -C sgml clean
	$(MAKE) -C sgml postgres.html
	(cd sgml; $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif clientserver.gif connections.gif layout.gif)
d51 1
a51 1
	(cd sgml; $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif connections.gif)
d56 1
a56 1
	(cd sgml; $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm -C ../graphics clientserver.gif)
d61 6
a66 1
	(cd sgml; $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm)
a77 1

@


1.12
log
@GZIP vs ZIP variable naming messed up
@
text
@d2 1
a2 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/src/Makefile,v 1.11 2000/08/31 16:09:16 petere Exp $
d9 2
a10 1
GZIP= gzip
d15 1
a15 1
TARGETS= $(SRC:%=%.tar.gz)
d22 1
a22 1
	(mv -f *.gz ..)
d33 1
a33 1
	$(MAKE) sources.tar.gz
d76 3
a78 2
%.gz:	%
	$(GZIP) -f $<
@


1.11
log
@Fix relative path references so that make knowns which dependencies refer
to one another. Sort out builddir vs srcdir variable namings. Remove some
now obsoleted make variables.
@
text
@d2 1
a2 1
# $Header$
d9 1
a9 1
ZIP= gzip
@


1.10
log
@Automatic dependency tracking

The .DEFAULT rule in backend/Makefile is harmful -- removed.
Replace `::' rules by `:'.
@
text
@d2 1
a2 1
# Thomas Lockhart
d4 3
a6 3
# Not yet generated from configure, so use relative path names for now...
PGDOCS= ..
SRCDIR= ../../src
a11 7
# Pick up Makefile.global from the source area
# This is the only resource from the code source area and is optional

ifneq ($(wildcard $(SRCDIR)/Makefile.global), )
include $(SRCDIR)/Makefile.global
endif

d76 1
a76 2
	($(ZIP) -f $<)

@


1.9
log
@Use sgml/Makefile to generate man sections, so just "make man" there.
@
text
@d26 1
a26 1
install::
d30 1
a30 1
clean::
d33 1
a33 1
distclean::
d36 1
a36 1
all:: $(TARGETS)
d38 1
a38 1
sources::
@


1.8
log
@Include gif omitted from integrated doc.
 Thanks to Goran Uddeborg for spotting this.
@
text
@d75 1
a75 1
	$(MAKE) -C sgml man1 manl
@


1.7
log
@Include rules for building a man tar file.
@
text
@d57 1
a57 1
	(cd sgml; $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif connections.gif layout.gif)
@


1.7.2.1
log
@Add missing gif to postgres integrated doc.
@
text
@d57 1
a57 1
	(cd sgml; $(TAR) -cf ../$@@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif clientserver.gif connections.gif layout.gif)
@


1.6
log
@Fix build rules for the tutorial,
 which was not built last time these things changed.
@
text
@d4 1
d73 4
@


1.5
log
@Try to get only html and gif files into tarballs.
 Was picking up subdirectories and other garbage.
@
text
@d66 1
a66 1
	(cd sgml; $(TAR) -cf ../$@@ $(TAREXCLUDE) -C sgml . -C .. -C graphics clientserver.gif)
@


1.4
log
@Allow building a source tarball.
Try to generalize the gzip/tar usage for more portability.
@
text
@d9 1
a9 1
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml'
d46 6
a51 1
	($(TAR) -cf $@@ $(TAREXCLUDE) -C sgml . -C .. -C graphics layout.gif)
d56 1
a56 1
	($(TAR) -cf $@@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif layout.gif)
d61 1
a61 1
	($(TAR) -cf $@@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif)
d66 1
a66 1
	($(TAR) -cf $@@ $(TAREXCLUDE) -C sgml . -C .. -C graphics clientserver.gif)
d71 1
a71 1
	($(TAR) -cf $@@ $(TAREXCLUDE) -C sgml .)
@


1.3
log
@Include complete Makefile.global if available,
 rather than just Makefile.custom.
@
text
@d8 1
d38 1
a38 1
	($(TAR) zcf sources.tar.gz sgml graphics)
d40 4
a43 1
admin.tar.gz:
d46 1
a46 1
	($(TAR) zcf $@@ $(TAREXCLUDE) -C sgml . -C .. -C graphics layout.gif)
d48 1
a48 1
postgres.tar.gz:
d51 1
a51 1
	($(TAR) zcf $@@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif layout.gif)
d53 1
a53 1
programmer.tar.gz:
d56 1
a56 1
	($(TAR) zcf $@@ $(TAREXCLUDE) -C sgml . -C .. -C graphics catalogs.gif connections.gif)
d58 1
a58 1
tutorial.tar.gz:
d61 1
a61 1
	($(TAR) zcf $@@ $(TAREXCLUDE) -C sgml . -C .. -C graphics clientserver.gif)
d63 1
a63 1
user.tar.gz:
d66 1
a66 1
	($(TAR) zcf $@@ $(TAREXCLUDE) -C sgml .)
d73 1
a73 1
	(gzip -f $<)
@


1.2
log
@Make this rely on a real Makefile in sgml/.
Implement installation and cleaning.
@
text
@d10 1
a10 1
# Pick up Makefile.custom from the source area
d13 2
a14 2
ifneq ($(wildcard $(SRCDIR)/Makefile.custom), )
include $(SRCDIR)/Makefile.custom
@


1.1
log
@SGML source for new documentation.
@
text
@a6 14
HPATH=$(PGDOCS)/doc
PPATH=$(PGDOCS)/doc

#HSTYLE=/usr/lib/sgml/stylesheets/jade/docbook/html
#PSTYLE=/usr/lib/sgml/stylesheets/jade/docbook/print

HSTYLE=/home/tgl/SGML/db107.d/docbook/html
PSTYLE=/home/tgl/SGML/db107.d/docbook/print

HDSL=$(HSTYLE)/docbook.dsl
PDSL=$(PSTYLE)/docbook.dsl

#DBOPTS=-V %no-split-output% -V %no-make-index%

d17 1
a17 1
TARGETS= postgres tutorial user admin programmer
d19 1
a19 2
HTARGETS=#make this a mapping from targets
PTARGETS=#make this a mapping from targets
d21 2
a22 2
.PRECIOUS: postgres.html postgres.tex postgres.dvi
.PHONY: sources clean
d26 7
a32 1
	(mv -rf *.gz ..)
d34 1
a34 1
all:: $(SGO) $(SGP)
d37 1
a37 1
	($(TAR) zcf sources.tar.gz --exclude='*.htm*' --exclude='*.gz' .)
d39 11
a49 1
user.tar.gz:
d51 2
a52 2
	$(MAKE) -C sgml user.html
	($(TAR) zcf $@@ $(TAREXCLUDE) -C sgml .)
d59 1
a59 4
clean::
	(rm -rf *.html *.htm)

distclean::
d61 2
a70 50
# TAR file for HTML package

%.tar:	%.html # %.ps
	(tar cf $@@ $*.html index.html *.htm *.gif) # $*.ps
	(rm -rf index.html *.htm)

#	(mkdir $*)
#	(rm -rf $*/*)
#	(mv *.htm $*/)
#	(cd $*/; ln -sf book01.htm index.html)
#	(tar cf $@@ $*)

# HTML
# Include some softlinks to the generic default file names

%.html:	%.sgml $(HDSL)
	(rm -rf *.htm)
	jade $(DBOPTS) -D sgml -d $(HDSL) -t sgml $<
	(ln -sf book01.htm index.html)
	(ln -sf book01.htm $*.html)

#	(mkdir $(HPATH)/$*)	# be sure there is somewhere to put them
#	(rm -rf $(HPATH)/$*/*)	# remove existing files since some names may be obsolete
#	(mv *.htm $(HPATH)/$*/)	# and copy 'em over
#	(cd $(HPATH)/$*/; ln -sf book01.htm index.html)

# RTF to allow minor editing for hardcopy
# This is used for v6.3 docs

%.rtf: %.sgml $(PDSL)
	jade $(DBOPTS) -d $(PDSL) -t rtf $<

# TeX and DVI

%.tex: %.sgml $(PDSL)
	jade $(DBOPTS) -d $(PDSL) -t tex $<

%.dvi: %.tex
	jadetex $<
	jadetex $<

# Postscript from TeX

%.ps: %.dvi
	dvips -o $@@ $<

# Graphics

%.gif:
	cp -p graphics/%.gif .
@
