head	1.61;
access;
symbols
	REL9_0_0:1.61
	REL9_1_ALPHA1:1.61
	REL9_0_RC1:1.61
	REL9_0_BETA4:1.61
	REL9_0_STABLE:1.61.0.2
	REL9_0_BETA3:1.61
	REL9_0_BETA2:1.60
	REL7_4_29:1.29
	REL8_0_25:1.48.4.1
	REL8_1_21:1.49
	REL8_2_17:1.51
	REL8_3_11:1.56
	REL8_4_4:1.57
	REL9_0_BETA1:1.59
	REL9_0_ALPHA5_BRANCH:1.59.0.4
	REL9_0_ALPHA5:1.59
	REL7_4_28:1.29
	REL8_0_24:1.48.4.1
	REL8_1_20:1.49
	REL8_2_16:1.51
	REL8_3_10:1.56
	REL8_4_3:1.57
	REL9_0_ALPHA4:1.59
	REL9_0_ALPHA4_BRANCH:1.59.0.2
	REL8_5_ALPHA3:1.58
	REL8_5_ALPHA3_BRANCH:1.58.0.4
	REL7_4_27:1.29
	REL8_0_23:1.48.4.1
	REL8_1_19:1.49
	REL8_2_15:1.51
	REL8_3_9:1.56
	REL8_4_2:1.57
	REL8_5_ALPHA2:1.58
	REL8_5_ALPHA2_BRANCH:1.58.0.2
	REL7_4_26:1.29
	REL8_0_22:1.48.4.1
	REL8_1_18:1.49
	REL8_2_14:1.51
	REL8_3_8:1.56
	REL8_4_1:1.57
	REL8_5_ALPHA1:1.57
	REL8_5_ALPHA1_BRANCH:1.57.0.4
	REL8_4_STABLE:1.57.0.2
	REL8_4_0:1.57
	REL8_4_RC2:1.57
	REL8_4_RC1:1.57
	REL8_4_BETA2:1.57
	REL8_4_BETA1:1.57
	REL7_4_25:1.29
	REL8_0_21:1.48.4.1
	REL8_1_17:1.49
	REL8_2_13:1.51
	REL8_3_7:1.56
	REL7_4_24:1.29
	REL8_0_20:1.48.4.1
	REL8_1_16:1.49
	REL8_2_12:1.51
	REL8_3_6:1.56
	REL7_4_23:1.29
	REL8_0_19:1.48.4.1
	REL8_1_15:1.49
	REL8_2_11:1.51
	REL8_3_5:1.56
	REL7_4_22:1.29
	REL8_0_18:1.48.4.1
	REL8_1_14:1.49
	REL8_2_10:1.51
	REL8_3_4:1.56
	REL7_4_21:1.29
	REL8_0_17:1.48.4.1
	REL8_1_13:1.49
	REL8_2_9:1.51
	REL8_3_3:1.56
	REL7_4_20:1.29
	REL8_0_16:1.48.4.1
	REL8_1_12:1.49
	REL8_2_8:1.51
	REL8_3_2:1.56
	REL8_2_7:1.51
	REL8_3_1:1.56
	REL8_3_STABLE:1.56.0.2
	REL8_3_0:1.56
	REL8_3_RC2:1.56
	REL7_3_21:1.28
	REL7_4_19:1.29
	REL8_0_15:1.48.4.1
	REL8_1_11:1.49
	REL8_2_6:1.51
	REL8_3_RC1:1.56
	REL8_3_BETA4:1.55
	REL8_3_BETA3:1.55
	REL8_3_BETA2:1.55
	REL8_3_BETA1:1.53
	REL7_3_20:1.28
	REL7_4_18:1.29
	REL8_0_14:1.48.4.1
	REL8_1_10:1.49
	REL8_2_5:1.51
	REL7_3_19:1.28
	REL7_4_17:1.29
	REL8_0_13:1.48.4.1
	REL8_1_9:1.49
	REL8_2_4:1.51
	REL8_0_12:1.48.4.1
	REL8_1_8:1.49
	REL8_2_3:1.51
	REL7_3_18:1.28
	REL7_4_16:1.29
	REL8_0_11:1.48.4.1
	REL8_1_7:1.49
	REL8_2_2:1.51
	REL8_0_10:1.48.4.1
	REL8_1_6:1.49
	REL8_2_1:1.51
	REL7_4_15:1.29
	REL7_3_17:1.28
	REL8_2_STABLE:1.51.0.2
	REL8_2_0:1.51
	REL8_2_RC1:1.51
	REL8_2_BETA3:1.51
	REL8_2_BETA2:1.51
	REL8_1_5:1.49
	REL8_0_9:1.48.4.1
	REL7_4_14:1.29
	REL7_3_16:1.28
	REL8_2_BETA1:1.51
	REL7_3_15:1.28
	REL7_4_13:1.29
	REL8_0_8:1.48.4.1
	REL8_1_4:1.49
	REL7_3_14:1.28
	REL7_4_12:1.29
	REL8_0_7:1.48.4.1
	REL8_1_3:1.49
	REL7_3_13:1.28
	REL7_4_11:1.29
	REL8_0_6:1.48.4.1
	REL8_1_2:1.49
	REL7_3_12:1.28
	REL7_4_10:1.29
	REL8_0_5:1.48.4.1
	REL8_1_1:1.49
	REL8_1_STABLE:1.49.0.2
	REL8_1_0:1.49
	REL8_1_0RC1:1.49
	REL8_1_0BETA4:1.49
	REL8_1_0BETA3:1.49
	REL7_3_11:1.28
	REL7_4_9:1.29
	REL8_0_4:1.48.4.1
	REL8_1_0BETA2:1.49
	REL8_1_0BETA1:1.49
	REL7_2_8:1.26
	REL7_3_10:1.28
	REL7_4_8:1.29
	REL8_0_3:1.48.4.1
	REL8_0_2:1.48.4.1
	REL7_2_7:1.26
	REL7_3_9:1.28
	REL7_4_7:1.29
	REL8_0_1:1.48
	REL8_0_STABLE:1.48.0.4
	REL8_0_0:1.48.0.2
	REL8_0_0RC5:1.48
	REL8_0_0RC4:1.48
	REL8_0_0RC3:1.48
	REL8_0_0RC2:1.47
	REL8_0_0RC1:1.47
	REL8_0_0BETA5:1.47
	REL8_0_0BETA4:1.47
	REL7_4_6:1.29
	REL7_3_8:1.28
	REL7_2_6:1.26
	REL8_0_0BETA3:1.44
	REL8_0_0BETA2:1.44
	REL7_2_5:1.26
	REL7_4_5:1.29
	REL7_3_7:1.28
	REL7_4_4:1.29
	REL8_0_0BETA1:1.43
	REL7_4_3:1.29
	REL7_4_2:1.29
	REL7_3_6:1.28
	REL7_4_1:1.29
	REL7_3_5:1.28
	REL7_4:1.29
	REL7_4_RC2:1.29
	REL7_4_STABLE:1.29.0.2
	REL7_4_RC1:1.29
	REL7_4_BETA5:1.29
	REL7_4_BETA4:1.29
	REL7_4_BETA3:1.29
	REL7_4_BETA2:1.28
	WIN32_DEV:1.28.0.4
	REL7_4_BETA1:1.28
	REL7_3_4:1.28
	REL7_3_2:1.28
	REL7_2_4:1.26
	REL7_3_STABLE:1.28.0.2
	REL7_2_3:1.26
	REL7_2_STABLE:1.26.0.2
	REL7_2:1.26
	REL7_2_RC2:1.26
	REL7_2_RC1:1.26
	REL7_2_BETA5:1.26
	REL7_2_BETA4:1.26
	REL7_2_BETA3:1.26
	REL7_2_BETA2:1.26
	REL7_2_BETA1:1.26
	REL7_1_2:1.25
	REL7_1_STABLE:1.25.0.2
	REL7_1_BETA:1.24
	REL7_1_BETA3:1.24
	REL7_1_BETA2:1.24
	REL7_1:1.25
	REL7_0_PATCHES:1.17.0.2
	REL7_0:1.17
	REL6_5_PATCHES:1.13.0.2
	REL6_5:1.13
	REL6_4:1.11.0.2
	release-6-3:1.4
	REL2_0B:1.3.0.2
	REL2_0:1.3
	Release_2_0_0:1.1.1.1
	Release_1_0_3:1.1.1.1.0.2
	Release_2_0:1.1.1.1
	Release_1_0_2:1.1.1.1
	PG95-1_01:1.1.1.1
	PG95_DIST:1.1.1;
locks; strict;
comment	@# @;


1.61
date	2010.07.05.18.54.37;	author tgl;	state Exp;
branches;
next	1.60;

1.60
date	2010.05.12.11.33.09;	author momjian;	state Exp;
branches;
next	1.59;

1.59
date	2010.01.02.16.57.58;	author momjian;	state Exp;
branches;
next	1.58;

1.58
date	2009.08.26.22.24.43;	author petere;	state Exp;
branches;
next	1.57;

1.57
date	2009.01.01.17.23.53;	author momjian;	state Exp;
branches;
next	1.56;

1.56
date	2008.01.01.19.45.55;	author momjian;	state Exp;
branches;
next	1.55;

1.55
date	2007.10.13.22.55.38;	author tgl;	state Exp;
branches;
next	1.54;

1.54
date	2007.10.13.20.18.41;	author tgl;	state Exp;
branches;
next	1.53;

1.53
date	2007.09.27.19.53.43;	author tgl;	state Exp;
branches;
next	1.52;

1.52
date	2007.01.05.22.19.47;	author momjian;	state Exp;
branches;
next	1.51;

1.51
date	2006.03.05.15.58.50;	author momjian;	state Exp;
branches;
next	1.50;

1.50
date	2005.12.09.21.19.35;	author petere;	state Exp;
branches;
next	1.49;

1.49
date	2005.03.25.18.17.12;	author momjian;	state Exp;
branches;
next	1.48;

1.48
date	2004.12.31.22.02.59;	author pgsql;	state Exp;
branches
	1.48.4.1;
next	1.47;

1.47
date	2004.10.05.19.30.21;	author momjian;	state Exp;
branches;
next	1.46;

1.46
date	2004.10.04.18.05.53;	author momjian;	state Exp;
branches;
next	1.45;

1.45
date	2004.10.04.13.43.55;	author momjian;	state Exp;
branches;
next	1.44;

1.44
date	2004.08.29.04.13.01;	author momjian;	state Exp;
branches;
next	1.43;

1.43
date	2004.08.01.06.22.38;	author momjian;	state Exp;
branches;
next	1.42;

1.42
date	2004.08.01.06.19.23;	author momjian;	state Exp;
branches;
next	1.41;

1.41
date	2004.05.24.01.01.37;	author momjian;	state Exp;
branches;
next	1.40;

1.40
date	2004.05.19.17.15.20;	author momjian;	state Exp;
branches;
next	1.39;

1.39
date	2004.05.18.20.18.58;	author momjian;	state Exp;
branches;
next	1.38;

1.38
date	2004.05.17.14.35.33;	author momjian;	state Exp;
branches;
next	1.37;

1.37
date	2004.05.11.21.57.14;	author momjian;	state Exp;
branches;
next	1.36;

1.36
date	2004.04.26.17.40.48;	author momjian;	state Exp;
branches;
next	1.35;

1.35
date	2003.12.23.21.56.20;	author tgl;	state Exp;
branches;
next	1.34;

1.34
date	2003.11.29.19.52.04;	author pgsql;	state Exp;
branches;
next	1.33;

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

1.32
date	2003.11.13.20.30.37;	author tgl;	state Exp;
branches;
next	1.31;

1.31
date	2003.11.11.01.58.23;	author momjian;	state Exp;
branches;
next	1.30;

1.30
date	2003.11.10.22.51.16;	author momjian;	state Exp;
branches;
next	1.29;

1.29
date	2003.09.07.03.36.03;	author tgl;	state Exp;
branches;
next	1.28;

1.28
date	2002.09.03.21.45.43;	author petere;	state Exp;
branches
	1.28.4.1;
next	1.27;

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

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

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

1.24
date	2000.09.17.13.02.31;	author petere;	state Exp;
branches;
next	1.23;

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

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

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

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

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

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

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

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

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

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

1.13
date	99.05.20.16.50.05;	author wieck;	state Exp;
branches;
next	1.12;

1.12
date	99.05.12.10.35.43;	author wieck;	state Exp;
branches;
next	1.11;

1.11
date	98.07.26.04.31.16;	author scrappy;	state Exp;
branches;
next	1.10;

1.10
date	98.07.24.03.32.08;	author scrappy;	state Exp;
branches;
next	1.9;

1.9
date	98.04.06.16.50.22;	author momjian;	state Exp;
branches;
next	1.8;

1.8
date	98.04.06.02.10.49;	author momjian;	state Exp;
branches;
next	1.7;

1.7
date	98.04.06.01.14.46;	author momjian;	state Exp;
branches;
next	1.6;

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

1.5
date	98.04.05.22.00.33;	author momjian;	state Exp;
branches;
next	1.4;

1.4
date	96.12.10.03.40.08;	author bryanh;	state Exp;
branches;
next	1.3;

1.3
date	96.11.14.10.25.22;	author bryanh;	state Exp;
branches;
next	1.2;

1.2
date	96.11.11.13.40.25;	author bryanh;	state Exp;
branches;
next	1.1;

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

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

1.28.4.1
date	2003.09.07.04.37.00;	author momjian;	state Exp;
branches;
next	;

1.48.4.1
date	2005.03.25.18.18.39;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.61
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/initdb
#
# Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
# Portions Copyright (c) 1994, Regents of the University of California
#
# $PostgreSQL: pgsql/src/bin/initdb/Makefile,v 1.60 2010/05/12 11:33:09 momjian Exp $
#
#-------------------------------------------------------------------------

PGFILEDESC = "initdb - initialize a new database cluster"
PGAPPICON=win32

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

override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)

OBJS=	initdb.o encnames.o pqsignal.o $(WIN32RES)

all: submake-libpgport initdb

initdb: $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LDFLAGS_EX) $(LIBS) -o $@@$(X)

# We used to pull in all of libpq to get encnames and pqsignal, but that
# exposes us to risks of version skew if we link to a shared library.
# Do it the hard way, instead, so that we're statically linked.

encnames.c: % : $(top_srcdir)/src/backend/utils/mb/%
	rm -f $@@ && $(LN_S) $< .

pqsignal.c: % : $(top_srcdir)/src/interfaces/libpq/%
	rm -f $@@ && $(LN_S) $< .

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

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

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

clean distclean maintainer-clean:
	rm -f initdb$(X) $(OBJS) encnames.c pqsignal.c


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


1.60
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/initdb/Makefile,v 1.59 2010/01/02 16:57:58 momjian Exp $
d26 1
a26 1
	$(CC) $(CFLAGS) $(OBJS) $(LDFLAGS) $(LIBS) -o $@@$(X)
@


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


1.58
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/initdb/Makefile,v 1.57 2009/01/01 17:23:53 momjian Exp $
@


1.57
log
@Update copyright for 2009.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/initdb/Makefile,v 1.56 2008/01/01 19:45:55 momjian Exp $
d40 1
a40 1
	$(mkinstalldirs) '$(DESTDIR)$(bindir)'
@


1.56
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/initdb/Makefile,v 1.55 2007/10/13 22:55:38 tgl Exp $
@


1.55
log
@Try to fix msvc build for recent initdb changes.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/initdb/Makefile,v 1.54 2007/10/13 20:18:41 tgl Exp $
@


1.54
log
@Fix the inadvertent libpq ABI breakage discovered by Martin Pitt: the
renumbering of encoding IDs done between 8.2 and 8.3 turns out to break 8.2
initdb and psql if they are run with an 8.3beta1 libpq.so.  For the moment
we can rearrange the order of enum pg_enc to keep the same number for
everything except PG_JOHAB, which isn't a problem since there are no direct
references to it in the 8.2 programs anyway.  (This does force initdb
unfortunately.)

Going forward, we want to fix things so that encoding IDs can be changed
without an ABI break, and this commit includes the changes needed to allow
libpq's encoding IDs to be treated as fully independent of the backend's.
The main issue is that libpq clients should not include pg_wchar.h or
otherwise assume they know the specific values of libpq's encoding IDs,
since they might encounter version skew between pg_wchar.h and the libpq.so
they are using.  To fix, have libpq officially export functions needed for
encoding name<=>ID conversion and validity checking; it was doing this
anyway unofficially.

It's still the case that we can't renumber backend encoding IDs until the
next bump in libpq's major version number, since doing so will break the
8.2-era client programs.  However the code is now prepared to avoid this
type of problem in future.

Note that initdb is no longer a libpq client: we just pull in the two
source files we need directly.  The patch also fixes a few places that
were being sloppy about checking for an unrecognized encoding name.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/initdb/Makefile,v 1.53 2007/09/27 19:53:43 tgl Exp $
d33 1
a33 1
pqsignal.c: % : $(libpq_srcdir)/%
@


1.53
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
@d8 1
a8 1
# $PostgreSQL: pgsql/src/bin/initdb/Makefile,v 1.52 2007/01/05 22:19:47 momjian Exp $
d17 1
a17 1
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
d19 1
a19 1
OBJS=	initdb.o $(WIN32RES)
d21 1
a21 1
all: submake-libpq submake-libpgport initdb
d23 12
a34 2
initdb: $(OBJS) $(libpq_builddir)/libpq.a
	$(CC) $(CFLAGS) $(OBJS) $(libpq_pgport) $(LDFLAGS) $(LIBS) -o $@@$(X)
d46 1
a46 1
	rm -f initdb$(X) $(OBJS)
@


1.52
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/initdb/Makefile,v 1.51 2006/03/05 15:58:50 momjian Exp $
d17 1
a17 1
override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
@


1.51
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/initdb/Makefile,v 1.50 2005/12/09 21:19:35 petere Exp $
@


1.50
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/initdb/Makefile,v 1.49 2005/03/25 18:17:12 momjian Exp $
@


1.49
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/initdb/Makefile,v 1.48 2004/12/31 22:02:59 pgsql Exp $
d27 1
a27 1
	$(INSTALL_PROGRAM) initdb$(X) $(DESTDIR)$(bindir)/initdb$(X)
d30 1
a30 1
	$(mkinstalldirs) $(DESTDIR)$(bindir)
d33 1
a33 1
	rm -f $(DESTDIR)$(bindir)/initdb$(X)
@


1.48
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/initdb/Makefile,v 1.47 2004/10/05 19:30:21 momjian Exp $
d24 1
a24 1
	$(CC) $(CFLAGS) $(OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@@$(X)
@


1.48.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/initdb/Makefile,v 1.48 2004/12/31 22:02:59 pgsql Exp $
d24 1
a24 1
	$(CC) $(CFLAGS) $(OBJS) $(libpq_pgport) $(LDFLAGS) $(LIBS) -o $@@$(X)
@


1.47
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/initdb/Makefile,v 1.46 2004/10/04 18:05:53 momjian Exp $
@


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


1.45
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/initdb/Makefile,v 1.44 2004/08/29 04:13:01 momjian Exp $
d16 1
a16 1
override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
@


1.44
log
@Update copyright to 2004.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/initdb/Makefile,v 1.43 2004/08/01 06:22:38 momjian Exp $
d16 1
a16 1
override CPPFLAGS := -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
d18 1
a18 1
OBJS=	initdb.o dirmod.o exec.o
a24 6
dirmod.c: % : $(top_srcdir)/src/port/%
	rm -f $@@ && $(LN_S) $< .

exec.c: % : $(top_srcdir)/src/port/%
	rm -f $@@ && $(LN_S) $< .

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


1.43
log
@Minor adjustments for dirmod.c.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/initdb/Makefile,v 1.42 2004/08/01 06:19:23 momjian Exp $
@


1.42
log
@Add docs for initdb --auth.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/initdb/Makefile,v 1.41 2004/05/24 01:01:37 momjian Exp $
d41 1
a41 1
	rm -f initdb$(X) $(OBJS) exec.c
@


1.41
log
@Remove a few $filter() calls that were not needed.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/initdb/Makefile,v 1.40 2004/05/19 17:15:20 momjian Exp $
d18 1
a18 1
OBJS=	initdb.o exec.o
d25 3
@


1.40
log
@Re-add elog() to exec.c, per Tom.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/initdb/Makefile,v 1.39 2004/05/18 20:18:58 momjian Exp $
d18 1
a18 2
OBJS=	initdb.o \
	$(filter exec.o, $(LIBOBJS))
@


1.39
log
@Move find_my_exec() way up into main.c so it is available to the
timezone code and other places.

Remove elog() calls from find_my_exec;  do fprintf(stderr) instead.  We
can then remove the exec.c handling in the makefile because it doesn't
have to be built to suppress elog calls.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/initdb/Makefile,v 1.38 2004/05/17 14:35:33 momjian Exp $
d18 2
a19 1
OBJS=	initdb.o
d26 3
d39 1
a39 1
	rm -f initdb$(X) $(OBJS)
@


1.38
log
@Reorganize code to allow path-relative installs.

Create new get_* functions to access compiled-in paths and adjust if
relative installs are to be used.

Clean up substitute_libpath_macro() code.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/initdb/Makefile,v 1.37 2004/05/11 21:57:14 momjian Exp $
d18 1
a18 2
OBJS=	initdb.o \
	$(filter exec.o, $(LIBOBJS))
a24 3
exec.c: % : $(top_srcdir)/src/port/%
	rm -f $@@ && $(LN_S) $< .

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


1.37
log
@As part of the work for making relocatable installs, I have re-factored
all the code that looks for other binaries.  I move FindExec into
port/exec.c (and renamed it to find_my_binary()).  I also added
find_other_binary that looks for another binary in the same directory as
the calling program, and checks the version string.

The only behavior change was that initdb and pg_dump would look in the
hard-coded bindir directory if it can't find the requested binary in the
same directory as the caller.  The new code throws an error.  The old
behavior seemed too error prone for version mismatches.
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/initdb/Makefile,v 1.36 2004/04/26 17:40:48 momjian Exp $
d16 1
a16 1
override CPPFLAGS := -DPGDATADIR=\"$(datadir)\" -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
@


1.36
log
@Add $(X) for cross-compiling.  Seems the mingw compiler running on
FreeBSD doesn't add .EXE to links.

Michiel Ephraim
@
text
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/initdb/Makefile,v 1.35 2003/12/23 21:56:20 tgl Exp $
d16 1
a16 1
override CPPFLAGS := -DPGBINDIR=\"$(bindir)\" -DPGDATADIR=\"$(datadir)\" -DFRONTEND -I$(libpq_srcdir) $(CPPFLAGS)
d18 2
a19 1
OBJS=	initdb.o
d26 3
d39 1
a39 1
	rm -f initdb$(X) $(OBJS)
d42 1
a42 1
# ensure that changes in bindir etc. propagate into object file
@


1.35
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
@d8 1
a8 1
# $PostgreSQL: pgsql-server/src/bin/initdb/Makefile,v 1.34 2003/11/29 19:52:04 pgsql Exp $
d23 1
a23 1
	$(CC) $(CFLAGS) $(OBJS) $(libpq) $(LDFLAGS) $(LIBS) -o $@@
@


1.34
log
@
$Header: -> $PostgreSQL Changes ...
@
text
@d8 1
a8 1
# $PostgreSQL: /cvsroot/pgsql-server/src/bin/initdb/Makefile,v 1.33 2003/11/23 21:42:13 petere Exp $
d36 4
@


1.33
log
@Add maintainer-clean target.
@
text
@d8 1
a8 1
# $Header: /cvsroot/pgsql-server/src/bin/initdb/Makefile,v 1.32 2003/11/13 20:30:37 tgl Exp $
@


1.32
log
@Silly to copy sprompt.c from src/port when we're linking libpgport anyway.
@
text
@d8 1
a8 1
# $Header: /cvsroot/pgsql-server/src/bin/initdb/Makefile,v 1.31 2003/11/11 01:58:23 momjian Exp $
d34 1
a34 1
clean distclean:
@


1.31
log
@Move system_views.sql into backend/catalog, per Tom.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
d8 1
a8 1
# $Header: /cvsroot/pgsql-server/src/bin/initdb/Makefile,v 1.30 2003/11/10 22:51:16 momjian Exp $
d18 1
a18 4
OBJS=	initdb.o sprompt.o
ifeq ($(PORTNAME), win32)
OBJS+=dirmod.o
endif
a23 3

dirmod.c sprompt.c: % : $(top_srcdir)/src/port/%
	rm -f $@@ && $(LN_S) $< .
@


1.30
log
@Add C version of initdb, from Andrew Dunstan.

This is his original version with a binary rmdir() we might need in the
future.

I will commit an update version with cleanups shortly.
@
text
@d8 1
a8 1
# $Header: /cvsroot/pgsql-server/src/bin/initdb/Makefile,v 1.29 2003/09/07 03:36:03 tgl Exp $
a32 1
	$(INSTALL_DATA) $(srcdir)/system_views.sql $(DESTDIR)$(datadir)/system_views.sql
d38 1
a38 1
	rm -f $(DESTDIR)$(bindir)/initdb$(X) $(DESTDIR)$(datadir)/system_views.sql
@


1.29
log
@Make the default pg_hba.conf include an entry for ::1 only if configure
set HAVE_IPV6.  Per recent discussions.
@
text
@d8 1
a8 1
# $Header: /cvsroot/pgsql-server/src/bin/initdb/Makefile,v 1.28 2002/09/03 21:45:43 petere Exp $
d16 1
a16 1
all: initdb
d18 12
a29 8
initdb: initdb.sh $(top_builddir)/src/Makefile.global
	sed -e 's/@@VERSION@@/$(VERSION)/g' \
	    -e 's,@@SHELL@@,$(SHELL),g' \
	    -e 's,@@HAVE_IPV6@@,$(HAVE_IPV6),g' \
	    -e 's,@@bindir@@,$(bindir),g' \
	    -e 's,@@datadir@@,$(datadir),g' \
	  $< >$@@
	chmod a+x $@@
d32 2
a33 1
	$(INSTALL_SCRIPT) initdb $(DESTDIR)$(bindir)/initdb
d39 1
a39 1
	rm -f $(DESTDIR)$(bindir)/initdb
d41 2
a42 2
clean distclean maintainer-clean:
	rm -f initdb
@


1.28
log
@Remove all traces of multibyte and locale options.  Clean up comments
referring to "multibyte" where it really means character encoding.
@
text
@d8 1
a8 1
# $Header: /cvsroot/pgsql-server/src/bin/initdb/Makefile,v 1.27 2002/06/20 20:29:41 momjian Exp $
d21 1
@


1.28.4.1
log
@Update this branch to match CVS head, includes WIN32 improvements.
@
text
@d8 1
a8 1
# $Header: /cvsroot/pgsql-server/src/bin/initdb/Makefile,v 1.29 2003/09/07 03:36:03 tgl Exp $
a20 1
	    -e 's,@@HAVE_IPV6@@,$(HAVE_IPV6),g' \
@


1.27
log
@Update copyright to 2002.
@
text
@d8 1
a8 1
# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.26 2001/05/08 16:28:46 momjian Exp $
d19 1
a19 2
	sed -e 's/@@MULTIBYTE@@/$(MULTIBYTE)/g' \
	    -e 's/@@VERSION@@/$(VERSION)/g' \
@


1.26
log
@Allow SHELL in Makefile.* to control initdb.
@
text
@d5 1
a5 1
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
d8 1
a8 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.25 2001/02/18 18:33:59 momjian Exp $
@


1.25
log
@Add copyright mentions, per Tom Lane.
@
text
@d8 1
a8 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.24 2000/09/17 13:02:31 petere Exp $
d21 1
@


1.24
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
@d5 2
a6 1
# Copyright (c) 1994, Regents of the University of California
d8 1
a8 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.23 2000/09/08 18:29:21 petere Exp $
@


1.23
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/initdb/Makefile,v 1.22 2000/09/01 13:15:27 petere Exp $
d26 1
a26 1
	$(INSTALL_SCRIPT) initdb $(bindir)/initdb
d29 1
a29 1
	$(mkinstalldirs) $(bindir)
d32 1
a32 1
	rm -f $(bindir)/initdb
@


1.22
log
@Change initdb to not delete PGDATA directory unless it was created by
initdb itself. Refuse to run on existing but non-empty PGDATA directory.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.21 2000/08/31 16:11:06 petere Exp $
a17 1
	rm -f $@@ $@@.tmp
d22 2
a23 3
	  $< >$@@.tmp
	chmod a+x $@@.tmp
	mv $@@.tmp $@@
@


1.21
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/initdb/Makefile,v 1.20 2000/07/06 21:33:38 petere Exp $
d18 8
a25 5
	sed -e 's/__MULTIBYTE__/$(MULTIBYTE)/g' \
	    -e 's/__VERSION__/$(VERSION)/g' \
	    -e 's:__bindir__:$(bindir):g' \
	    -e 's:__datadir__:$(datadir):g' \
	  < $< > $@@
@


1.20
log
@Backend makefile cleanup. make maintainer-clean is now completely
functional.

Handle include file installation in src/include/Makefile

genbki.sh improvements: Don't substitute anything by config.status,
instead pass in AWK and CPP through environment. Change calling
convention to support named output files, so we get to see error
messages on stderr.

Rename bootstrap template files and install them into PREFIX/share.
Update initdb to that effect and other readability improvements
in initdb.
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.19 2000/07/02 15:21:00 petere Exp $
d13 1
a13 1
include ../../Makefile.global
d17 1
a17 1
initdb: initdb.sh ../../Makefile.global
@


1.19
log
@Version number now set in configure, available through Makefile.global
and config.h. Adjusted all referring code.

Scrapped pg_version and changed initdb accordingly. Integrated
src/utils/version.c into src/backend/utils/init/miscinit.c. Changed all
callers.

Set version number to `7.1devel'. (Non-numeric version suffixes now allowed.)
@
text
@d7 1
a7 1
# $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.18 2000/06/27 00:30:53 petere Exp $
d18 5
a22 1
	sed -e 's/__MULTIBYTE__/$(MULTIBYTE)/g' -e 's/__VERSION__/$(VERSION)/g' < $< > $@@
@


1.18
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/initdb/Makefile,v 1.17 2000/02/16 21:25:59 momjian Exp $
d17 2
a18 2
initdb: initdb.sh
	sed -e 's/__MULTIBYTE__/$(MULTIBYTE)/g' < $< > $@@
@


1.17
log
@README not needed anymore.
@
text
@d3 1
a3 2
# Makefile.inc--
#    Makefile for bin/initdb
d7 1
a7 3
#
# IDENTIFICATION
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.16 2000/01/15 18:30:31 petere Exp $
d11 2
a12 1
SRCDIR= ../..
d18 4
a21 1
	sed -e 's/__MULTIBYTE__/$(MULTIBYTE)/g' < initdb.sh > initdb
d23 2
a24 2
install: initdb
	$(INSTALL) $(INSTL_EXE_OPTS) $+ $(BINDIR)/$+
d26 4
a29 1
clean:
a30 2

dep depend:
@


1.16
log
@- Allow array on int8
- Prevent permissions on indexes
- Instituted --enable-multibyte option and tweaked the MB build process where necessary
- initdb prompts for superuser password
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.15 1999/12/18 02:48:53 momjian Exp $
d23 1
a23 1
	$(INSTALL) $(INSTL_EXE_OPTS) $+ $(BINDIR)
@


1.15
log
@Cleanup of initdb.sh script to be portable, at least marginally.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.14 1999/12/08 10:29:39 momjian Exp $
d20 1
a20 1
	sed -e 's/__MULTIBYTE__/$(MULTIBYTE)/' initdb.sh > initdb
@


1.14
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/initdb/Makefile,v 1.13 1999/05/20 16:50:05 wieck Exp $
d20 1
a20 2
	sed -e 's/__MULTIBYTE__/$(MULTIBYTE)/' 			\
			initdb.sh > initdb
@


1.13
log
@Removed the automatic installation of built procedural languages
from initdb again.

Added two new commands, createlang and destroylang to bin. These
hopefully end this damned mklang.sql discussion.

Jan
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.12 1999/05/12 10:35:43 wieck Exp $
d24 1
a24 1
	$(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$<
@


1.12
log
@Added installation of created procedural languages to initdb

Jan
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.11 1998/07/26 04:31:16 scrappy Exp $
a20 1
		-e 's/__DLSUFFIX__/$(DLSUFFIX)/'			\
@


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

As Bruce mentioned, this is due to the conflict among changes we made.
Included patches should fix the problem(I changed all MB to
MULTIBYTE). Please let me know if you have further problem.

P.S. I did not include pathces to configure and gram.c to save the
file size(configure.in and gram.y modified).
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.9 1998/04/06 16:50:22 momjian Exp $
d20 3
a22 1
	sed 's/__MULTIBYTE__/$(MULTIBYTE)/' initdb.sh > initdb
@


1.10
log
@
I really hope that I haven't missed anything in this one...

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

Attached are patches to enhance the multi-byte support.  (patches are
against 7/18 snapshot)

* determine encoding at initdb/createdb rather than compile time

Now initdb/createdb has an option to specify the encoding. Also, I
modified the syntax of CREATE DATABASE to accept encoding option. See
README.mb for more details.

For this purpose I have added new column "encoding" to pg_database.
Also pg_attribute and pg_class are changed to catch up the
modification to pg_database.  Actually I haved added pg_database_mb.h,
pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is
enabled. The reason having separate files is I couldn't find a way to
use ifdef or whatever in those files. I have to admit it looks
ugly. No way.

* support for PGCLIENTENCODING when issuing COPY command

commands/copy.c modified.

* support for SQL92 syntax "SET NAMES"

See gram.y.

* support for LATIN2-5
* add UNICODE regression test case
* new test suite for MB

New directory test/mb added.

* clean up source files

Basic idea is to have MB's own subdirectory for easier maintenance.
These are include/mb and backend/utils/mb.
@
text
@d20 1
a20 1
	sed 's/__MB__/$(MB)/' initdb.sh > initdb
@


1.9
log
@DESTDIR removed, again.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.8 1998/04/06 02:10:49 momjian Exp $
d19 3
d26 1
@


1.8
log
@Cleanup initdb
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.7 1998/04/06 01:14:46 momjian Exp $
d20 1
a20 1
	$(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$<
@


1.7
log
@Re-introduce $DISTDIR.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.6 1998/04/06 00:28:46 momjian Exp $
a22 1
	rm -f initdb
@


1.6
log
@Hi,

Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.5 1998/04/05 22:00:33 momjian Exp $
d20 1
a20 1
	$(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$<
@


1.5
log
@Remove DISTDIR.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/initdb/Makefile,v 1.4 1996/12/10 03:40:08 bryanh Exp $
a16 4
SEDSCRIPT= \
    -e "s^_fUnKy_NAMEDATALEN_sTuFf_^$(NAMEDATALEN)^g" \
    -e "s^_fUnKy_OIDNAMELEN_sTuFf_^$(OIDNAMELEN)^g" 

a18 3
initdb: initdb.sh
	sed $(SEDSCRIPT) <initdb.sh >initdb

d25 1
a25 1
dep:
@


1.4
log
@Add empty "dep:" target.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/initdb/Makefile,v 1.3 1996/11/14 10:25:22 bryanh Exp $
d27 1
a27 1
	$(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$<
@


1.3
log
@Remove most compile-time options, add a few runtime options to make up for it.
In particular, no more compiled-in default for PGDATA or LIBDIR.  Commands
that need them need either invocation options or environment variables.
PGPORT default is hardcoded as 5432, but overrideable with options or
environment variables.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/initdb/Makefile,v 1.1.1.1 1996/07/09 06:22:12 scrappy Exp $
d31 2
@


1.2
log
@Makefile simplification: the "bin" chapter
@
text
@a17 3
    -e "s^_fUnKy_BINDIR_sTuFf_^$(BINDIR)^g" \
    -e "s^_fUnKy_LIBDIR_sTuFf_^$(LIBDIR)^g" \
    -e "s^_fUnKy_DATADIR_sTuFf_^$(DATADIR)^g" \
d19 1
a19 2
    -e "s^_fUnKy_OIDNAMELEN_sTuFf_^$(OIDNAMELEN)^g" \
    -e "s^_fUnKy_POSTPORT_sTuFf_^$(POSTPORT)^g"
d23 1
a23 1
initdb:
@


1.1
log
@Initial revision
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/postgres95/src/bin/initdb/Makefile,v 1.1.1.1 1996/07/09 05:32:34 scrappy Exp $
d14 2
a15 1
SHPROG=	initdb
d17 7
a23 3
MKDIR=	../../mk
include $(MKDIR)/postgres.mk
include ../Makefile.global
d25 1
a25 1
include $(MKDIR)/postgres.shell.mk
d27 8
@


1.1.1.1
log
@Postgres95 1.01 Distribution - Virgin Sources
@
text
@@
