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


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

1.29
date	2010.05.12.11.33.09;	author momjian;	state Exp;
branches;
next	1.28;

1.28
date	2010.01.02.16.57.58;	author momjian;	state Exp;
branches;
next	1.27;

1.27
date	2009.08.26.22.24.43;	author petere;	state Exp;
branches;
next	1.26;

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

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

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

1.23
date	2007.01.05.22.19.48;	author momjian;	state Exp;
branches;
next	1.22;

1.22
date	2006.03.05.15.58.50;	author momjian;	state Exp;
branches;
next	1.21;

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

1.20
date	2005.03.25.18.17.13;	author momjian;	state Exp;
branches;
next	1.19;

1.19
date	2004.12.31.22.03.05;	author pgsql;	state Exp;
branches
	1.19.4.1;
next	1.18;

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

1.17
date	2004.10.04.18.05.54;	author momjian;	state Exp;
branches;
next	1.16;

1.16
date	2004.10.04.13.43.56;	author momjian;	state Exp;
branches;
next	1.15;

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

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

1.13
date	2003.12.23.21.56.21;	author tgl;	state Exp;
branches;
next	1.12;

1.12
date	2003.11.29.19.52.04;	author pgsql;	state Exp;
branches;
next	1.11;

1.11
date	2003.03.20.05.00.14;	author momjian;	state Exp;
branches;
next	1.10;

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

1.9
date	2000.09.17.13.02.35;	author petere;	state Exp;
branches;
next	1.8;

1.8
date	2000.09.08.18.29.27;	author petere;	state Exp;
branches;
next	1.7;

1.7
date	2000.08.31.16.11.10;	author petere;	state Exp;
branches;
next	1.6;

1.6
date	2000.06.27.00.31.08;	author petere;	state Exp;
branches;
next	1.5;

1.5
date	2000.06.04.01.44.36;	author petere;	state Exp;
branches;
next	1.4;

1.4
date	2000.03.08.01.58.18;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	99.12.22.04.12.55;	author ishii;	state Exp;
branches;
next	1.2;

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

1.1
date	99.12.06.07.23.41;	author ishii;	state Exp;
branches;
next	;

1.19.4.1
date	2005.03.25.18.18.40;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.30
log
@Split the LDFLAGS make variable into two parts: LDFLAGS is now used for
linking both executables and shared libraries, and we add on LDFLAGS_EX when
linking executables or LDFLAGS_SL when linking shared libraries.  This
provides a significantly cleaner way of dealing with link-time switches than
the former behavior.  Also, make sure that the various platform-specific
%.so: %.o rules incorporate LDFLAGS and LDFLAGS_SL; most of them missed that
before.  (I did not add these variables for the platforms that invoke $(LD)
directly, however.  It's not clear if we can do that safely, since for the
most part we assume these variables use CC command-line syntax.)

Per gripe from Aaron Swenson and subsequent investigation.
@
text
@#-------------------------------------------------------------------------
#
# Makefile for src/bin/pg_ctl
#
# Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.29 2010/05/12 11:33:09 momjian Exp $
#
#-------------------------------------------------------------------------

PGFILEDESC = "pg_ctl - starts/stops/restarts the PostgreSQL server"
PGAPPICON=win32

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

override CPPFLAGS := -DDEF_PGPORT=$(DEF_PGPORT) -I$(libpq_srcdir) $(CPPFLAGS)

OBJS=	pg_ctl.o $(WIN32RES)

all: submake-libpq submake-libpgport pg_ctl

pg_ctl: $(OBJS) $(libpq_builddir)/libpq.a
	$(CC) $(CFLAGS) $(OBJS) $(libpq_pgport) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@@$(X)

install: all installdirs
	$(INSTALL_PROGRAM) pg_ctl$(X) '$(DESTDIR)$(bindir)/pg_ctl$(X)'

installdirs:
	$(MKDIR_P) '$(DESTDIR)$(bindir)'

uninstall:
	rm -f '$(DESTDIR)$(bindir)/pg_ctl$(X)'

clean distclean maintainer-clean:
	rm -f pg_ctl$(X) $(OBJS)


# ensure that changes in DEF_PGPORT propagate into object file
pg_ctl.o: pg_ctl.c $(top_builddir)/src/Makefile.global
@


1.29
log
@Add PGFILEDESC description to Makefiles for all /contrib executables.

Add PGAPPICON to all executable makefiles.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.28 2010/01/02 16:57:58 momjian Exp $
d26 1
a26 1
	$(CC) $(CFLAGS) $(OBJS) $(libpq_pgport) $(LDFLAGS) $(LIBS) -o $@@$(X)
@


1.28
log
@Update copyright for the year 2010.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.27 2009/08/26 22:24:43 petere Exp $
d13 2
@


1.27
log
@Update of install-sh, mkinstalldirs, and associated configury

Update install-sh to that from Autoconf 2.63, plus our Darwin-specific
changes (which I simplified a bit).  install-sh is now able to install
multiple files in one run, so we could simplify our makefiles sometime.

install-sh also now has a -d option to create directories, so we don't need
mkinstalldirs anymore.

Use AC_PROG_MKDIR_P in configure.in, so we can use mkdir -p when available
instead of install-sh -d.  For consistency with the rest of the world,
the corresponding make variable has been renamed from $(mkinstalldirs) to
$(MKDIR_P).
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.26 2009/01/01 17:23:54 momjian Exp $
@


1.26
log
@Update copyright for 2009.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.25 2008/01/01 19:45:55 momjian Exp $
d30 1
a30 1
	$(mkinstalldirs) '$(DESTDIR)$(bindir)'
@


1.25
log
@Update copyrights in source tree to 2008.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.24 2007/09/27 19:53:43 tgl Exp $
@


1.24
log
@Define the FRONTEND symbol in postgres_fe.h, which allows us to eliminate
duplicative -DFRONTEND flags from many Makefiles.  We still need Makefile
control of the symbol in a few places that compile frontend-or-backend
src/port/ files, but it's a lot cleaner than before.

Hiroshi Saito
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.23 2007/01/05 22:19:48 momjian Exp $
@


1.23
log
@Update CVS HEAD for 2007 copyright.  Back branches are typically not
back-stamped for this.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.22 2006/03/05 15:58:50 momjian Exp $
d17 1
a17 1
override CPPFLAGS := -DFRONTEND -DDEF_PGPORT=$(DEF_PGPORT) -I$(libpq_srcdir) $(CPPFLAGS)
@


1.22
log
@Update copyright for 2006.  Update scripts.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.21 2005/12/09 21:19:35 petere Exp $
@


1.21
log
@Allow installation into directories containing spaces in the name.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.20 2005/03/25 18:17:13 momjian Exp $
@


1.20
log
@Have libpgport link before libpq so that PG client applications are more
immunte to changes in libpq's usage of pgport between major versions.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.19 2004/12/31 22:03:05 pgsql Exp $
d27 1
a27 1
	$(INSTALL_PROGRAM) pg_ctl$(X) $(DESTDIR)$(bindir)/pg_ctl$(X)
d30 1
a30 1
	$(mkinstalldirs) $(DESTDIR)$(bindir)
d33 1
a33 1
	rm -f $(DESTDIR)$(bindir)/pg_ctl$(X)
@


1.19
log
@
Tag appropriate files for rc3

Also performed an initial run through of upgrading our Copyright date to
extend to 2005 ... first run here was very simple ... change everything
where: grep 1996-2004 && the word 'Copyright' ... scanned through the
generated list with 'less' first, and after, to make sure that I only
picked up the right entries ...
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.18 2004/10/05 19:30:22 momjian Exp $
d24 1
a24 1
	$(CC) $(CFLAGS) $(OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@@$(X)
@


1.19.4.1
log
@Have libpgport link before libpq so that PG client applications are more
immunte to changes in libpq's usage of pgport between major versions.

Backpatch to 8.0.X.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/pg_ctl/Makefile,v 1.19 2004/12/31 22:03:05 pgsql Exp $
d24 1
a24 1
	$(CC) $(CFLAGS) $(OBJS) $(libpq_pgport) $(LDFLAGS) $(LIBS) -o $@@$(X)
@


1.18
log
@Add Win32 version info to client binaries.

Magnus Hagander
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/pg_ctl/Makefile,v 1.17 2004/10/04 18:05:54 momjian Exp $
@


1.17
log
@Readd -DFRONTEND to client makefiles because it still affects win32.h
defines.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/pg_ctl/Makefile,v 1.16 2004/10/04 13:43:56 momjian Exp $
d12 1
d19 1
a19 1
OBJS=	pg_ctl.o
@


1.16
log
@Make libpgport be front-end only and make libpgport_srv be a backend
library that uses palloc, ereport, etc.  This simplifies the makefiles
for client applications.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/pg_ctl/Makefile,v 1.15 2004/08/29 04:13:01 momjian Exp $
d16 1
a16 1
override CPPFLAGS := -DDEF_PGPORT=$(DEF_PGPORT) -I$(libpq_srcdir) $(CPPFLAGS)
@


1.15
log
@Update copyright to 2004.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/pg_ctl/Makefile,v 1.14 2004/05/27 03:37:55 momjian Exp $
d16 1
a16 1
override CPPFLAGS := -DFRONTEND -DDEF_PGPORT=$(DEF_PGPORT) -I$(libpq_srcdir) $(CPPFLAGS)
d18 1
a18 1
OBJS=	pg_ctl.o exec.o
a24 3
exec.c: % : $(top_srcdir)/src/port/%
	rm -f $@@ && $(LN_S) $< .

d35 1
a35 1
	rm -f pg_ctl$(X) $(OBJS) exec.c
@


1.14
log
@Change pg_ctl to be in C.  This was the final shell script and is
helpful for the Win32 port.

Andrew Dunstan, with additions by Bruce.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/pg_ctl/Makefile,v 1.41 2004/05/24 01:01:37 momjian Exp $
@


1.13
log
@Fix a number of places where reconfiguring with a different installation
prefix would fail, because the new path did not get propagated to where
it needed to be.  Note this would fail even with --enable-depend.
@
text
@d5 2
a6 1
# Copyright (c) 1999, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/pg_ctl/Makefile,v 1.12 2003/11/29 19:52:04 pgsql Exp $
d16 1
a16 1
all: pg_ctl
d18 9
a26 6
pg_ctl: pg_ctl.sh $(top_builddir)/src/Makefile.global
	sed -e 's/@@VERSION@@/$(VERSION)/g' \
	    -e 's,@@bindir@@,$(bindir),g' \
	    -e 's,@@DEF_PGPORT@@,$(DEF_PGPORT),g' \
	  $< >$@@
	chmod a+x $@@
d29 1
a29 1
	$(INSTALL_SCRIPT) pg_ctl $(DESTDIR)$(bindir)/pg_ctl
d35 1
a35 1
	rm -f $(DESTDIR)$(bindir)/pg_ctl
d38 5
a42 1
	rm -f pg_ctl
@


1.12
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d7 1
a7 1
# $PostgreSQL: /cvsroot/pgsql-server/src/bin/pg_ctl/Makefile,v 1.11 2003/03/20 05:00:14 momjian Exp $
d17 1
a17 1
pg_ctl: pg_ctl.sh
@


1.11
log
@(Now featuring documentation: fixed some typos, expanded the
Envrironment and Files section, explained exactly what -w
does)

This is a patch which allows pg_ctl to make an intelligent
guess as to the proper port when running 'psql -l' to
determine if the database has started up (the -w flag).

The environment variable PGPORT is used. If that is not found,
it checks if a specific port has been set inside the postgresql.conf
file. If it is has not, it uses the port that Postgres was
compiled with.

Greg Sabino Mullane  greg@@turnstep.com
@
text
@d7 1
a7 1
# $Header: /cvsroot/pgsql-server/src/bin/pg_ctl/Makefile,v 1.10 2000/11/25 17:17:30 petere Exp $
@


1.10
log
@Update pg_ctl ref page, help output, messages.  Some repair to work better
with current postmaster.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_ctl/Makefile,v 1.9 2000/09/17 13:02:35 petere Exp $
d20 1
@


1.9
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/src/bin/pg_ctl/Makefile,v 1.8 2000/09/08 18:29:27 petere Exp $
d18 3
a20 1
	cp $< $@@
@


1.8
log
@Make building scripts kind of consistent in look and feel, kind of immune
to parallel make, kind of resistent to corruption due to incomplete builds.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_ctl/Makefile,v 1.7 2000/08/31 16:11:10 petere Exp $
d22 1
a22 1
	$(INSTALL_SCRIPT) pg_ctl $(bindir)/pg_ctl
d25 1
a25 1
	$(mkinstalldirs) $(bindir)
d28 1
a28 1
	rm -f $(bindir)/pg_ctl
@


1.7
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
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_ctl/Makefile,v 1.6 2000/06/27 00:31:08 petere Exp $
d19 1
@


1.6
log
@Makefile cleanup for bin and pl subtrees. They should now support
all the standard semantics. Also get rid of Makefile.in's on the
way and instead declare all variables in Makefile.global.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_ctl/Makefile,v 1.5 2000/06/04 01:44:36 petere Exp $
d13 1
a13 1
include ../../Makefile.global
@


1.5
log
@New ps display code, works on more platforms.

Install a default configuration file.

Clean up some funny business in the config file code.
@
text
@d3 1
a3 2
# Makefile.inc--
#    Makefile for bin/pg_ctl
d7 1
a7 3
#
# IDENTIFICATION
#    $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_ctl/Makefile,v 1.4 2000/03/08 01:58:18 momjian Exp $
d11 2
a12 1
SRCDIR= ../..
d18 4
a21 1
	cat pg_ctl.sh > pg_ctl
d23 2
a24 2
install: pg_ctl
	$(INSTALL) $(INSTL_EXE_OPTS) $+ $(BINDIR)
d26 4
a29 1
clean:
a30 2

dep depend:
@


1.4
log
@I've made a diff against the 7.0beta1 tree that accomplishes several things:

        1) adds NetBSD shared lib support on both ELF and a.out platforms

        2) replaces "-L$(LIBPQDIR) -lpq" with "$(LIBPQ)" defined in
           Makefile.global.  This makes it much easier to build stuff in
           the source tree after you've already installed the libraries.

        3) adds TEMPLATEDIR in Makefile.global that indicates where the
           database templates are stored.  This separates the template files
           from real libraries that are installed in $(LIBDIR).
        4) changes include order of <readline/readline.h> and <readline.h>.
           The latest GNU readline installs its headers under a readline
           subdirectory.

In addition to applying the patch below the following files need to be copied:

        backend/port/dynloader:
                bsd.h -> netbsd.h
                bsd.c -> netbsd.c
        include/port:
                bsd.h -> netbsd.h
        makefiles:
                Makefile.bsd -> Makefile.netbsd

It would be great to see this incorporated into the source tree before
the 7.0 release is cut.

        Thanks!

     -- Johnny C. Lam <lamj@@stat.cmu.edu>
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_ctl/Makefile,v 1.3 1999/12/22 04:12:55 ishii Exp $
a23 1
	$(INSTALL) $(INSTLOPTS) postmaster.opts.default.sample $(TEMPLATEDIR)
@


1.3
log
@Add installation of pg_ctl
Locate path of postmaster in a portable way (stolen from initdb)
Add postmaster.opts.default.sample which should be copied into
$PGLIB in the installtion process. Also, it will be installed into
$PGDATA while initdb is running.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_ctl/Makefile,v 1.2 1999/12/08 10:29:51 momjian Exp $
d24 1
a24 1
	$(INSTALL) $(INSTLOPTS) postmaster.opts.default.sample $(LIBDIR)
@


1.2
log
@Change $< to $+ in scripts Makefile, and clean up pg_encoding if logic.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/pg_ctl/Makefile,v 1.1 1999/12/06 07:23:41 ishii Exp $
d20 1
a20 1
	sed -e 's@@__BINDIR__@@$(BINDIR)@@' pg_ctl.sh > pg_ctl
d24 1
@


1.1
log
@pg_ctl: a script to start/stop/restart and report status of postmaster.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.13 1999/05/20 16:50:05 wieck Exp $
d23 1
a23 1
	$(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$<
@
