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


1.39
date	2009.08.09.22.47.59;	author petere;	state Exp;
branches;
next	1.38;

1.38
date	2009.08.05.19.31.49;	author alvherre;	state Exp;
branches;
next	1.37;

1.37
date	2009.06.27.21.06.46;	author tgl;	state Exp;
branches;
next	1.36;

1.36
date	2009.06.26.06.40.57;	author petere;	state Exp;
branches;
next	1.35;

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

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

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

1.32
date	2008.11.14.10.22.45;	author petere;	state Exp;
branches;
next	1.31;

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

1.30
date	2008.02.17.16.36.42;	author petere;	state Exp;
branches;
next	1.29;

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

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

1.27
date	2003.11.29.19.51.36;	author pgsql;	state Exp;
branches;
next	1.26;

1.26
date	2003.11.24.14.52.58;	author petere;	state Exp;
branches;
next	1.25;

1.25
date	2003.08.04.20.52.48;	author tgl;	state Exp;
branches;
next	1.24;

1.24
date	2002.11.27.23.21.12;	author tgl;	state Exp;
branches;
next	1.23;

1.23
date	2002.07.28.15.19.59;	author petere;	state Exp;
branches
	1.23.2.1;
next	1.22;

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

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

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

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

1.18
date	2000.07.17.22.31.57;	author petere;	state Exp;
branches;
next	1.17;

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

1.16
date	2000.07.09.13.13.55;	author petere;	state Exp;
branches;
next	1.15;

1.15
date	2000.05.17.16.57.40;	author momjian;	state Exp;
branches;
next	1.14;

1.14
date	99.12.05.21.23.00;	author momjian;	state Exp;
branches;
next	1.13;

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

1.12
date	98.11.29.05.30.13;	author tgl;	state Exp;
branches;
next	1.11;

1.11
date	98.10.20.23.14.35;	author momjian;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	98.10.06.05.44.05;	author thomas;	state Exp;
branches;
next	1.9;

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

1.8
date	98.04.27.14.41.50;	author scrappy;	state Exp;
branches;
next	1.7;

1.7
date	98.04.17.03.58.11;	author thomas;	state Exp;
branches;
next	1.6;

1.6
date	98.04.06.01.35.16;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	98.03.15.07.37.51;	author scrappy;	state Exp;
branches;
next	1.4;

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

1.3
date	96.11.19.22.23.13;	author momjian;	state dead;
branches;
next	1.2;

1.2
date	96.11.17.19.40.15;	author momjian;	state Exp;
branches;
next	1.1;

1.1
date	96.08.18.22.14.17;	author scrappy;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.08.18.22.14.17;	author scrappy;	state Exp;
branches;
next	;

1.11.2.1
date	98.12.05.23.08.55;	author tgl;	state Exp;
branches;
next	;

1.23.2.1
date	2002.11.27.23.21.20;	author tgl;	state Exp;
branches;
next	;


desc
@@


1.39
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 documentation top-level makefile
#
# Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/doc/Makefile,v 1.38 2009/08/05 19:31:49 alvherre Exp $
#
#----------------------------------------------------------------------------

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

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


1.38
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
@d3 1
a3 1
# PostgreSQL documentation installation makefile
d7 1
a7 1
# $PostgreSQL: pgsql/doc/Makefile,v 1.37 2009-06-27 21:06:46 tgl Exp $
a10 11
# This makefile is responsible for installing the documentation. The
# files to be installed are prepared specially and are placed in this
# directory during distribution bundling. In CVS-based trees these
# files don't exist, so we skip the installation in that case.
#
# Before we install the man pages, we massage the section numbers to
# follow the local conventions.
#
# To actually build the documenation, look into the src/ and src/sgml
# subdirectories.

d15 1
a15 82
.NOTPARALLEL:

ifneq ($(wildcard $(srcdir)/postgres.tar.gz),)
found_html = yes
endif

ifneq ($(wildcard $(srcdir)/man.tar.gz),)
# SCO OpenServer's man system is sufficiently different to not bother.
ifneq ($(PORTNAME), sco)
found_man = yes
endif
endif


ifdef found_man
ifndef sqlmansect
sqlmansect = 7
endif
sqlmansectnum = $(shell expr X'$(sqlmansect)' : X'\([0-9]\)')

fix_sqlmansectnum = sed -e '/^\.TH/s/"7"/"$(sqlmansect)"/' \
			-e 's/\\fR(7)/\\fR($(sqlmansectnum))/g' \
			-e '1s/^\.so man7/.so man$(sqlmansectnum)/g;1s/^\(\.so.*\)\.7$$/\1.$(sqlmansect)/g'

all: man1/.timestamp man3/.timestamp man$(sqlmansectnum)/.timestamp

man1/.timestamp man3/.timestamp: man7/.timestamp
	@@echo timestamp >$@@

man7/.timestamp: man.tar.gz
	gzip -d -c $< | $(TAR) xf -
ifneq ($(sqlmansectnum),7)
	for file in man1/*.1; do \
	  mv $$file $$file.bak && \
	  $(fix_sqlmansectnum) $$file.bak >$$file && \
	  rm -f $$file.bak || exit; \
	done
endif
	@@echo timestamp >$@@

ifneq ($(sqlmansectnum),7)
man$(sqlmansectnum)/.timestamp: man7/.timestamp
	$(mkinstalldirs) man$(sqlmansectnum)
	for file in man7/*.7; do \
	  $(fix_sqlmansectnum) $$file >man$(sqlmansectnum)/`basename $$file | sed 's/.7$$/.$(sqlmansect)/'` || exit; \
	done
	@@echo timestamp >$@@
endif
endif # found_man


install: all installdirs
ifdef found_html
	gzip -d -c $(srcdir)/postgres.tar.gz | ( cd $(DESTDIR)$(htmldir)/html && $(TAR) xf - )
endif
ifdef found_man
	for file in man1/*.1 man3/*.3 man$(sqlmansectnum)/*.$(sqlmansect) ; do \
	  $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/$$file || exit; \
	done
endif


installdirs:
ifdef found_html
	$(mkinstalldirs) '$(DESTDIR)$(htmldir)'/html
endif
ifdef found_man
	$(mkinstalldirs) $(addprefix '$(DESTDIR)$(mandir)'/man, 1 3 $(sqlmansectnum))
endif


uninstall:
ifdef found_html
	rm -f $(addprefix $(DESTDIR)$(htmldir)/html/, $(shell gunzip -c $(srcdir)/postgres.tar.gz | $(TAR) tf -))
endif
ifdef found_man
	rm -f $(filter-out %/, $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c $(srcdir)/man.tar.gz | $(TAR) tf - | sed -e 's,man7/,man$(sqlmansectnum)/,' -e 's/.7$$/.$(sqlmansect)/')))
endif


clean distclean maintainer-clean:
	rm -rf man1/ man3/ man7/ man$(sqlmansectnum)/
@


1.37
log
@Revert addition of "o" to tar options.  This was intended to fix bug #4883,
but the cure appears to be worse than the disease.  It turns out that GNU
tar versions 1.14.x misinterpret -o as --same-owner, not --no-same-owner,
leading to exactly the wrong behavior for both root and nonroot users.
While that bug has been fixed for nearly five years, these tar versions
are still found in the wild, notably in OS X 10.4.  Given that #4883 was
the first complaint we'd heard, it's definitely not worth fixing at the
risk of breaking things for other users.  Perhaps revisit at a later date
when we're not up against a release deadline.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/doc/Makefile,v 1.36 2009/06/26 06:40:57 petere Exp $
d50 1
a50 1
all: man1/.timestamp man$(sqlmansectnum)/.timestamp
d52 1
a52 1
man1/.timestamp: man7/.timestamp
d82 1
a82 1
	for file in man1/*.1 man$(sqlmansectnum)/*.$(sqlmansect) ; do \
d93 1
a93 1
	$(mkinstalldirs) $(addprefix '$(DESTDIR)$(mandir)'/man, 1 $(sqlmansectnum))
d107 1
a107 1
	rm -rf man1/ man7/ man$(sqlmansectnum)/
@


1.36
log
@Extract tarballs with "o" option (tar xof), to behave reasonably when run
as root, as would usually be the case during make install.

per bug #4883
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/doc/Makefile,v 1.35 2009/06/26 06:37:14 petere Exp $
d56 1
a56 1
	gzip -d -c $< | $(TAR) xof -
d79 1
a79 1
	gzip -d -c $(srcdir)/postgres.tar.gz | ( cd $(DESTDIR)$(htmldir)/html && $(TAR) xof - )
@


1.35
log
@Use $(TAR) instead of tar in makefiles.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/doc/Makefile,v 1.34 2009/06/19 19:15:13 petere Exp $
d56 1
a56 1
	gzip -d -c $< | $(TAR) xf -
d79 1
a79 1
	gzip -d -c $(srcdir)/postgres.tar.gz | ( cd $(DESTDIR)$(htmldir)/html && $(TAR) xf - )
@


1.34
log
@Extend man page installation hackery so that the man page section is also
fixed up in the .so links.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/doc/Makefile,v 1.32 2008/11/14 10:22:45 petere Exp $
d99 1
a99 1
	rm -f $(addprefix $(DESTDIR)$(htmldir)/html/, $(shell gunzip -c $(srcdir)/postgres.tar.gz | tar tf -))
d102 1
a102 1
	rm -f $(filter-out %/, $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c $(srcdir)/man.tar.gz | tar tf - | sed -e 's,man7/,man$(sqlmansectnum)/,' -e 's/.7$$/.$(sqlmansect)/')))
@


1.33
log
@Don't attempt to "rm" directories on uninstall.
@
text
@d46 4
d60 1
a60 1
	  sed -e 's/\\fR(7)/\\fR($(sqlmansectnum))/g' $$file.bak >$$file && \
d70 1
a70 3
	  sed -e '/^\.TH/s/"7"/"$(sqlmansect)"/'   \
              -e 's/\\fR(7)/\\fR($(sqlmansectnum))/g' \
	      $$file >man$(sqlmansectnum)/`basename $$file | sed 's/.7$$/.$(sqlmansect)/'` || exit; \
@


1.32
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
@d7 1
a7 1
# $PostgreSQL: pgsql/doc/Makefile,v 1.31 2008/03/18 16:24:50 petere Exp $
d100 1
a100 1
	rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c $(srcdir)/man.tar.gz | tar tf - | sed -e 's,man7/,man$(sqlmansectnum)/,' -e 's/.7$$/.$(sqlmansect)/'))
@


1.31
log
@Catch all errors in for and while loops in makefiles.  Don't ignore any
errors in any commands, including in various clean targets that have so far
been handled inconsistently.  make -i is available to ignore all errors in
a consistent and official way.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/doc/Makefile,v 1.30 2008/02/17 16:36:42 petere Exp $
d48 1
a48 1
man1/.timestamp: man$(sqlmansect_dummy)/.timestamp
d51 1
a51 1
man$(sqlmansect_dummy)/.timestamp: man.tar.gz
d53 1
d56 1
a56 1
	  sed -e 's/\\fR($(sqlmansect_dummy))/\\fR($(sqlmansectnum))/' $$file.bak >$$file && \
d59 1
d62 2
a63 1
man$(sqlmansectnum)/.timestamp: man$(sqlmansect_dummy)/.timestamp
d65 4
a68 4
	for file in man$(sqlmansect_dummy)/*.$(sqlmansect_dummy); do \
	  sed -e '/^\.TH/s/"$(sqlmansect_dummy)"/"$(sqlmansect)"/'   \
              -e 's/\\fR($(sqlmansect_dummy))/\\fR($(sqlmansectnum))/' \
	      $$file >man$(sqlmansectnum)/`basename $$file | sed 's/.$(sqlmansect_dummy)$$/.$(sqlmansect)/'` || exit; \
d71 1
d100 1
a100 1
	rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c $(srcdir)/man.tar.gz | tar tf - | sed -e 's,man$(sqlmansect_dummy)/,man$(sqlmansectnum)/,' -e 's/.$(sqlmansect_dummy)$$/.$(sqlmansect)/'))
d105 1
a105 1
	rm -rf man1/ man$(sqlmansectnum)/ man$(sqlmansect_dummy)/
@


1.30
log
@Upgrade to Autoconf 2.61:
- Change configure.in to use Autoconf 2.61 and update generated files.
- Update build system and documentation to support now directory variables
  offered by Autoconf 2.61.
- Replace usages of PGAC_CHECK_ALIGNOF by AC_CHECK_ALIGNOF, now available
  in Autoconf 2.61.
- Drop our patched version of AC_C_INLINE, as Autoconf now has the change.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/doc/Makefile,v 1.29 2007/02/09 15:55:57 petere Exp $
d93 1
a93 1
	-rm -f $(addprefix $(DESTDIR)$(htmldir)/html/, $(shell gunzip -c $(srcdir)/postgres.tar.gz | tar tf -))
d96 1
a96 1
	-rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c $(srcdir)/man.tar.gz | tar tf - | sed -e 's,man$(sqlmansect_dummy)/,man$(sqlmansectnum)/,' -e 's/.$(sqlmansect_dummy)$$/.$(sqlmansect)/'))
@


1.29
log
@Replace useless uses of := by = in makefiles.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/doc/Makefile,v 1.28 2005/12/09 21:19:34 petere Exp $
a28 1
ifneq (,$(docdir))
a30 1
endif
d73 1
a73 1
	gzip -d -c $(srcdir)/postgres.tar.gz | ( cd $(DESTDIR)$(docdir)/html && $(TAR) xf - )
d84 1
a84 1
	$(mkinstalldirs) '$(DESTDIR)$(docdir)'/html
d93 1
a93 1
	-rm -f $(addprefix $(DESTDIR)$(docdir)/html/, $(shell gunzip -c $(srcdir)/postgres.tar.gz | tar tf -))
@


1.28
log
@Allow installation into directories containing spaces in the name.
@
text
@d7 1
a7 1
# $PostgreSQL: pgsql/doc/Makefile,v 1.27 2003/11/29 19:51:36 pgsql Exp $
d30 1
a30 1
found_html := yes
d37 1
a37 1
found_man := yes
@


1.27
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
# $PostgreSQL: /cvsroot/pgsql-server/doc/Makefile,v 1.26 2003/11/24 14:52:58 petere Exp $
d86 1
a86 1
	$(mkinstalldirs) $(DESTDIR)$(docdir)/html
d89 1
a89 1
	$(mkinstalldirs) $(addprefix $(DESTDIR)$(mandir)/man, 1 $(sqlmansectnum))
@


1.26
log
@Use --with-docdir to choose installation location of documentation; put
back --infodir, which several automatic build environments expect to exist.
Add --without-docdir to prevent installation of documentation, which is
helpful for things like RPM that have their own method of installing
documentation.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/doc/Makefile,v 1.25 2003/08/04 20:52:48 tgl Exp $
@


1.25
log
@Fix erroneous direct reference to postgres.tar.gz, per bug report
from Garrick Staples.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/doc/Makefile,v 1.24 2002/11/27 23:21:12 tgl Exp $
d29 1
d31 1
@


1.24
log
@rm should be rm -f, per comment from Peter Harris.
(Checked with Peter Eisentraut.)
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/doc/Makefile,v 1.23 2002/07/28 15:19:59 petere Exp $
d73 1
a73 1
	gzip -d -c postgres.tar.gz | ( cd $(DESTDIR)$(docdir)/html && $(TAR) xf - )
@


1.23
log
@Clean documentation subtree during make clean.
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/doc/Makefile,v 1.22 2002/02/06 20:29:35 petere Exp $
d56 1
a56 1
	  rm $$file.bak || exit; \
@


1.23.2.1
log
@rm should be rm -f, per comment from Peter Harris.
(Checked with Peter Eisentraut.)
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/doc/Makefile,v 1.23 2002/07/28 15:19:59 petere Exp $
d56 1
a56 1
	  rm -f $$file.bak || exit; \
@


1.22
log
@Fix for parallel make
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql/doc/Makefile,v 1.21 2001/08/29 19:14:39 petere Exp $
d100 1
a100 1
clean:
d102 1
a102 2

distclean maintainer-clean: clean
@


1.21
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
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/Makefile,v 1.20 2000/12/26 20:47:07 petere Exp $
d48 4
a51 1
man1/.timestamp man$(sqlmansect_dummy)/.timestamp: man.tar.gz
d58 1
a58 2
	@@echo timestamp >man1/.timestamp
	@@echo timestamp >man$(sqlmansect_dummy)/.timestamp
@


1.20
log
@Only install the integrated HTML documentation set (not the individual
books separately), in directory $(docdir)/html.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/Makefile,v 1.19 2000/09/17 13:02:28 petere Exp $
d11 7
a17 6
# This directory doesn't build anything, it is only responsible for
# installing the documenation. It is invoked automatically by the
# top-level makefile. The files to be installed are prepared specially
# and are placed in this directory during distribution bundling. In
# CVS-based trees these files don't exist, so we skip the installation
# in that case.
d26 1
d33 2
d37 1
d40 27
a66 1
all:
d74 3
a76 1
	gzip -d -c man.tar.gz | ( cd $(DESTDIR)$(mandir) && $(TAR) xf - )
d81 6
a86 1
	$(mkinstalldirs) $(DESTDIR)$(mandir) $(DESTDIR)$(docdir)/html
d94 1
a94 1
	-rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c $(srcdir)/man.tar.gz | tar tf -))
d96 6
@


1.19
log
@Support for DESTDIR make variable. This is used as in `make install
DESTDIR=/else/where' and prepends the value of DESTDIR to the full
installation paths (e.g., /else/where/usr/local/pgsql/bin). This allows
users to install the package into a location different from the one that
was configured and hard-coded into various scripts, e.g., for creating
binary packages.

DESTDIR is in many cases preferrable over `make install
prefix=/else/where' because

a) `prefix' affects the path that is hard-coded into the files, which can
lead to a `make install prefix=xxx' (as done by the regression test
driver) corrupting the files in the source tree with wrong paths.

b) it doesn't work at all if a directory was overridden to not depend on
`prefix', e.g., --sysconfdir=/etc.

(Updating the regression test driver to use DESTDIR is a separate
undertaking.)

See also autoconf@@gnu.org, From: Akim Demaille <akim@@epita.fr>, Date: 08
Sep 2000 12:48:59 +0200, Message-ID:
<mv4em2vb1lw.fsf@@nostromo.lrde.epita.fr>, Subject: Re: HTML format
documentation.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/Makefile,v 1.18 2000/07/17 22:31:57 petere Exp $
d26 3
a28 3
MODULES := admin postgres programmer tutorial user

found_MODULES := $(foreach module, $(MODULES), $(shell test -f $(srcdir)/$(module).tar.gz && echo $(module)))
d39 2
a40 5
ifneq ($(strip $(found_MODULES)),)
	for module in $(found_MODULES); do \
	  gzip -d -c $${module}.tar.gz | ( cd $(DESTDIR)$(docdir)/$$module && $(TAR) xf - ) || \
	  exit; \
	done
d48 1
a48 1
	$(mkinstalldirs) $(DESTDIR)$(mandir) $(addprefix $(DESTDIR)$(docdir)/, . $(found_MODULES))
d52 3
a54 1
	-rm -rf $(addprefix $(DESTDIR)$(docdir)/, $(MODULES))
d56 1
a56 1
	-rm -f $(addprefix $(DESTDIR)$(mandir)/, $(shell gunzip -c man.tar.gz | tar tf -))
@


1.18
log
@End users shouldn't have to invoke a separate command to install the
documentation. Therefore it's now installed by default. If there is no
documentation to be found (i.e., you are not using the distribution)
then this step is skipped.

Add --docdir option to configure to control installation directory.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/doc/Makefile,v 1.17 2000/07/16 14:50:32 petere Exp $
d41 1
a41 1
	  gunzip -c $${module}.tar.gz | ( cd $(docdir)/$$module && $(TAR) xf - ) || \
d46 1
a46 1
	gunzip -c man.tar.gz | ( cd $(mandir) && $(TAR) xf - )
d51 1
a51 1
	$(mkinstalldirs) $(mandir) $(addprefix $(docdir)/, . $(found_MODULES))
d55 1
a55 1
	-rm -rf $(addprefix $(docdir)/, $(MODULES))
d57 1
a57 1
	-rm -f $(addprefix $(mandir)/, $(shell gunzip -c man.tar.gz | tar tf -))
@


1.17
log
@Automatic dependency tracking

The .DEFAULT rule in backend/Makefile is harmful -- removed.
Replace `::' rules by `:'.
@
text
@d3 1
a3 3
# Makefile
#	Postgres documentation installation makefile
#	Thomas Lockhart
d7 1
d9 8
a16 2
# IDENTIFICATION
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/Makefile,v 1.16 2000/07/09 13:13:55 petere Exp $
d18 2
a19 1
#----------------------------------------------------------------------------
d21 3
a23 2
PGDOCS= $(POSTGRESDIR)/doc
SRCDIR= ../src
a24 1
TAR= tar
d26 1
a26 3
# Pick up Makefile.global from the source area
# This is the only resource from the code source area and is optional.
# Actually, we want this to get Makefile.custom - thomas 1998-03-01
d28 1
a28 3
ifneq ($(wildcard $(SRCDIR)/Makefile.global), )
include $(SRCDIR)/Makefile.global
endif
d30 2
a31 7
# Hmm, made this optional but jade _really_ doesn't like them missing
# - thomas 1998-03-01
ifneq ($(HDSL), )
HTMLOPTS= -d $(HDSL)
endif
ifneq ($(PDSL), )
PRINTOPTS= -d $(PDSL)
a33 2
MODULES= admin postgres programmer tutorial user
TARGETS= $(MODULES:%=%.html)
d35 1
a35 2
.PRECIOUS: postgres.tex postgres.dvi
.PHONY: beforeinstall install all clean distclean
a36 2
beforeinstall:
	-@@if [ ! -d $(PGDOCS) ]; then mkdir $(PGDOCS); fi
d38 10
a47 3
install:
	$(MAKE) all
	$(MAKE) man
a48 1
all: beforeinstall $(MODULES)
d50 2
a51 2
clean:
	rm -rf $(MODULES)
a52 2
distclean:
	$(MAKE) clean
d54 5
a58 21
man:
	-@@if test ! -d $(POSTMANDIR) ; then mkdir $(POSTMANDIR) ; fi
	gunzip -c man.tar.gz | (cd $(POSTMANDIR) ; $(TAR) xf - )

#
# Generic production rules
#

# Unpack tar file
# Put into area pointed to by $(PGDOCS).
## Make a local file to keep track of dependencies,
##  if $(PGDOCS) points somewhere else.
## Disable this for now - thomas 1998-03-01
# Remove the contents of the target directory
#  to replace symlinks - thomas 1998-03-01

%:	%.tar.gz
	rm -rf ./$@@ $(PGDOCS)/$*
	if test ! -d $(PGDOCS)/$* ; then mkdir $(PGDOCS)/$* ; fi
	gunzip -c $< | (cd $(PGDOCS)/$* ; $(TAR) xf - )
#	touch ./$*
@


1.16
log
@Another round of those unportable config/build changes :-/

* Add option to build with OpenSSL out of the box. Fix thusly exposed
  bit rot. Although it compiles now, getting this to do something
  useful is left as an exercise.

* Fix Kerberos options to defer checking for required libraries until
  all the other libraries are checked for.

* Change default odbcinst.ini and krb5.srvtab path to PREFIX/etc.

* Install work around for Autoconf's install-sh relative path anomaly.
  Get rid of old INSTL_*_OPTS variables, now that we don't need them
  anymore.

* Use `gunzip -c' instead of g?zcat. Reportedly broke on AIX.

* Look for only one of readline.h or readline/readline.h, not both.

* Make check for PS_STRINGS cacheable. Don't test for the header files
  separately.

* Disable fcntl(F_SETLK) test on Linux.

* Substitute the standard GCC warnings set into CFLAGS in configure,
  don't add it on in Makefile.global.

* Sweep through contrib tree to teach makefiles standard semantics.

... and in completely unrelated news:

* Make postmaster.opts arbitrary options-aware. I still think we need to
  save the environment as well.
@
text
@d11 1
a11 1
#    $Header: /home/projects/pgsql/cvsroot/pgsql/doc/Makefile,v 1.15 2000/05/17 16:57:40 momjian Exp $
d43 1
a43 1
beforeinstall::
d46 1
a46 1
install::
d50 1
a50 1
all:: beforeinstall $(MODULES)
d52 1
a52 1
clean::
d55 1
a55 1
distclean::
d58 1
a58 1
man::
@


1.15
log
@The check of class string in configure (line 1732) fails because this class
is in <string> and not in <string.h> on QNX4/egcs-2.91.60.
Probably this can be changed for all platforms. The test in line 1705 uses
<string> as well. Because I am not sure, I havn't this included into the
patch.

doc/Makefile has to be sligthly  modified as it has been done for
src/backend/Makefile due to a QNX4 problem (patch attached)

Furthermore src/test/regress/run_check.sh needs to be patched as it has been
done for regress.sh (patch attached). Please note that in the patch the
postmaster is started always with the -i option.

run_check.sh reports the test "limit" as failed, but in reallity it is OK.
regress.sh reports it as OK.

Andreas Kardos
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/Makefile,v 1.14 1999/12/05 21:23:00 momjian Exp $
a18 1
GZCAT= zcat
d60 1
a60 1
	$(GZCAT) man.tar.gz | (cd $(POSTMANDIR) ; $(TAR) xf - )
d77 1
a77 1
	$(GZCAT) $< | (cd $(PGDOCS)/$* ; $(TAR) xf - )
@


1.14
log
@Clean up doc/Makefile to install manual pages.
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/Makefile,v 1.13 1999/08/08 15:09:04 thomas Exp $
d45 1
a45 1
	if [ ! -d $(PGDOCS) ]; then mkdir $(PGDOCS); fi
d60 1
a60 1
	if test ! -d $(POSTMANDIR) ; then mkdir $(POSTMANDIR) ; fi
@


1.13
log
@Switch from old man pages to new ones generated from sgml.
@
text
@d11 1
a11 1
#    $Header: /opt/postgres/cvs/pgsql/doc/Makefile,v 1.12 1998/11/29 05:30:13 tgl Exp $
d59 1
a59 1
man::	man.tar.gz
d61 1
a61 1
	$(GZCAT) $< | (cd $(POSTMANDIR) ; $(TAR) xf - )
a79 1

@


1.12
log
@Use autoconf to determine whether system has POSIX signals,
instead of relying on port's os.h to tell us.  (Needed for HPUX
where system major version is not enough info.)
configure unsets USE_TK if X libraries not found.
doc/Makefile uses gzcat or zcat as found by autoconf.
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/Makefile,v 1.11 1998/10/20 23:14:35 momjian Exp $
d59 3
a61 2
man::
	$(MAKE) -C $(SRCDIR) install-man
@


1.11
log
@Fix for 'make man'.
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/Makefile,v 1.10 1998/10/06 05:44:05 thomas Exp $
d19 1
d77 1
a77 1
	zcat $< | $(TAR) xf - -C $(PGDOCS)/$*
@


1.11.2.1
log
@No complaints heard about the main branch, so I'm committing this
to REL6_4 as well...
Use autoconf to determine whether system has POSIX signals,
instead of relying on port's os.h to tell us.  (Needed for HPUX
where system major version is not enough info.)
configure unsets USE_TK if X libraries not found.
doc/Makefile uses gzcat or zcat as found by autoconf.
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/Makefile,v 1.12 1998/11/29 05:30:13 tgl Exp $
a18 1
GZCAT= zcat
d76 1
a76 1
	$(GZCAT) $< | (cd $(PGDOCS)/$* ; $(TAR) xf - )
@


1.10
log
@Install man pages from here now. "make install" will do that along with
the html/ps material...
@
text
@d11 1
a11 1
#    $Header: /opt/postgres/cvs/pgsql/doc/Makefile,v 1.9 1998/05/29 13:14:25 thomas Exp $
d58 1
a58 1
man:
@


1.9
log
@Define PGDOC to use POSTGRESDIR by default.
 Can be set to something else in Makefile.custom if necessary.
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/Makefile,v 1.8 1998/04/27 14:41:50 scrappy Exp $
d48 1
d57 3
@


1.8
log
@From: Ryan Kirkpatrick <rkirkpat@@nag.cs.colorado.edu>

        Ok, I have finally gotten all of the defines for Dec/Alpha and
Linux/Alpha sorted out as Marc asked. There is no longer any need for
'-Dalpha' or '-Dlinuxalpha' in either the Dec/Alpha or the Linux/Alpha
template files (./src/template/{alpha,linuxalpha}). I have replaced every
instance of 'alpha' or '__alpha__' with '__alpha', as that appears to be
the common symbol between C compilers on both operating systems (RH4.2 &
DecUnix 4.0b) for alpha.
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/Makefile,v 1.7 1998/04/17 03:58:11 thomas Exp $
d15 1
a15 1
PGDOCS= /home/projects/pgsql/ftp/www/html/docs2
@


1.7
log
@Use POSTGRESDIR to set initial PGDOCS destination directory.
PGDOCS in Makefile.custom will supercede defaults here, I think...
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/Makefile,v 1.6 1998/04/06 01:35:16 momjian Exp $
d15 1
a15 1
PGDOCS= $(POSTGRESDIR)/doc
@


1.6
log
@Make DESTDIR consistent, and verious Linux cleanups.
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/Makefile,v 1.5 1998/03/15 07:37:51 scrappy Exp $
d15 1
a15 1
PGDOCS= unpacked
d41 4
a44 1
.PHONY: install all clean distclean
d49 1
a49 1
all:: $(MODULES)
d72 1
a72 1
	$(TAR) zxf $< -C $(PGDOCS)/$*
@


1.5
log
@From: t-ishii@@sra.co.jp

Included are patches intended for allowing PostgreSQL to handle
multi-byte charachter sets such as EUC(Extende Unix Code), Unicode and
Mule internal code. With the MB patch you can use multi-byte character
sets in regexp and LIKE. The encoding system chosen is determined at
the compile time.

To enable the MB extension, you need to define a variable "MB" in
Makefile.global or in Makefile.custom. For further information please
take a look at README.mb under doc directory.

(Note that unlike "jp patch" I do not use modified GNU regexp any
more. I changed Henry Spencer's regexp coming with PostgreSQL.)
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/pgsql/doc/Makefile,v 1.4 1998/03/01 20:37:44 thomas Exp $
d15 1
a15 1
PGDOCS= /usr/local/cdrom/docs
@


1.4
log
@Allow installation of documentation packages.
@
text
@d11 1
a11 1
#    $Header$
d15 1
a15 1
PGDOCS= .
@


1.3
log
@Make install change for man files
@
text
@d1 1
a1 1
#-------------------------------------------------------------------------
d4 2
a5 1
#    Makefile for doc directory to install man pages
a7 1
# Copyright (c) 1996, Dr George D Detlefsen
d11 1
a11 1
#    $Header: /usr/local/cvsroot/postgres95-support/doc/Makefile,v 1.2 1996/11/17 19:40:15 momjian Exp momjian $
d13 1
a13 1
#-------------------------------------------------------------------------
d15 2
a16 2
MKDIR=	../src/mk
include $(MKDIR)/postgres.mk
d18 1
a18 1
CLEANFILES=*
d20 3
a22 10
install-man:
	-mkdir -p $(POSTMANDIR)
	-mkdir $(POSTMANDIR)/man1
	-mkdir $(POSTMANDIR)/man3
	-mkdir $(POSTMANDIR)/man5
	-mkdir $(POSTMANDIR)/manl
	cp ../src/man/*.1* $(POSTMANDIR)/man1
	cp ../src/man/*.3* $(POSTMANDIR)/man3
	cp ../src/man/*.5* $(POSTMANDIR)/man5
	cp ../src/man/*.l* $(POSTMANDIR)/manl
d24 47
a70 1
install:: install-man
@


1.2
log
@Enable manual pages to be installed.
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/postgres95-support/doc/Makefile,v 1.1.1.1 1996/08/18 22:14:17 scrappy Exp $
@


1.1
log
@Initial revision
@
text
@d11 1
a11 1
#    $Header: /usr/local/cvsroot/postgres95/doc/Makefile,v 1.4 1996/07/26 19:51:46 scrappy Exp $
d26 4
a29 4
	cp man/*.1* $(POSTMANDIR)/man1
	cp man/*.3* $(POSTMANDIR)/man3
	cp man/*.5* $(POSTMANDIR)/man5
	cp man/*.l* $(POSTMANDIR)/manl
@


1.1.1.1
log
@Support Docs & Contrib
@
text
@@
