diff --git a/src/bin/cleardbdir/Makefile b/src/bin/cleardbdir/Makefile index 1d38b127a0c7cc29fc2f88f1d0baaf03a14ebd4b..12e2d1e10b6460887d8aecd5a42fcc2a79ae6c28 100644 --- a/src/bin/cleardbdir/Makefile +++ b/src/bin/cleardbdir/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/cleardbdir/Attic/Makefile,v 1.6 1998/04/06 00:27:55 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/cleardbdir/Attic/Makefile,v 1.7 1998/04/06 01:14:10 momjian Exp $ # #------------------------------------------------------------------------- @@ -20,7 +20,7 @@ cleardbdir: cp cleardbdir.sh cleardbdir install: cleardbdir - $(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< + $(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$< clean: rm -f cleardbdir diff --git a/src/bin/createdb/Makefile b/src/bin/createdb/Makefile index 7e789dd9c49d13660e28df71f20ea268212cc107..97e71ea6531400472ab63a5167ab87597273525f 100644 --- a/src/bin/createdb/Makefile +++ b/src/bin/createdb/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/createdb/Attic/Makefile,v 1.6 1998/04/06 00:28:04 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/createdb/Attic/Makefile,v 1.7 1998/04/06 01:14:13 momjian Exp $ # #------------------------------------------------------------------------- @@ -20,7 +20,7 @@ createdb: createdb.sh cp createdb.sh createdb install: createdb - $(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< + $(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$< clean: rm -f createdb diff --git a/src/bin/createuser/Makefile b/src/bin/createuser/Makefile index d63b0b2ee7f1fa83e1fcb7973f62193e48cfe979..f03c925d15760fe8306b2eabe066a6e61d631454 100644 --- a/src/bin/createuser/Makefile +++ b/src/bin/createuser/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/createuser/Attic/Makefile,v 1.6 1998/04/06 00:28:16 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/createuser/Attic/Makefile,v 1.7 1998/04/06 01:14:18 momjian Exp $ # #------------------------------------------------------------------------- @@ -24,7 +24,7 @@ createuser: createuser.sh sed $(SEDSCRIPT) <createuser.sh >createuser install: createuser - $(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< + $(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$< clean: rm -f createuser diff --git a/src/bin/destroydb/Makefile b/src/bin/destroydb/Makefile index fd59639d09274ad3358b4d8bdeba3781179f4946..903118db58822bbe2b91fd281bb4f34985144009 100644 --- a/src/bin/destroydb/Makefile +++ b/src/bin/destroydb/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/Makefile,v 1.6 1998/04/06 00:28:25 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/destroydb/Attic/Makefile,v 1.7 1998/04/06 01:14:26 momjian Exp $ # #------------------------------------------------------------------------- @@ -20,7 +20,7 @@ destroydb: destroydb.sh cp destroydb.sh destroydb install: destroydb - $(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< + $(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$< clean: rm -f destroydb diff --git a/src/bin/destroyuser/Makefile b/src/bin/destroyuser/Makefile index 72a9c5572f90f15d1e6f2d7b1f7c55df1f7c990a..8311cf50b2006160a56b70eb7be16c494d04e858 100644 --- a/src/bin/destroyuser/Makefile +++ b/src/bin/destroyuser/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/Makefile,v 1.6 1998/04/06 00:28:37 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/destroyuser/Attic/Makefile,v 1.7 1998/04/06 01:14:36 momjian Exp $ # #------------------------------------------------------------------------- @@ -24,7 +24,7 @@ destroyuser: destroyuser.sh sed $(SEDSCRIPT) <destroyuser.sh >destroyuser install: destroyuser - $(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< + $(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$< clean: rm -f destroyuser diff --git a/src/bin/initdb/Makefile b/src/bin/initdb/Makefile index 67cd26bec1ca6f8de1087ee7b0aa69f850fab852..9ce4daa5272f4eb5e1c4b33e7a0f87aff72997c0 100644 --- a/src/bin/initdb/Makefile +++ b/src/bin/initdb/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.6 1998/04/06 00:28:46 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.7 1998/04/06 01:14:46 momjian Exp $ # #------------------------------------------------------------------------- @@ -17,7 +17,7 @@ include ../../Makefile.global all: initdb install: initdb - $(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< + $(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$< clean: rm -f initdb diff --git a/src/bin/initlocation/Makefile b/src/bin/initlocation/Makefile index 905a402c1a6eec0d8cd84d21fb23125b0faccd91..bc346b6d2862969618a30a70cb23d8233cc6df2d 100644 --- a/src/bin/initlocation/Makefile +++ b/src/bin/initlocation/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.3 1998/04/06 00:29:00 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/initlocation/Attic/Makefile,v 1.4 1998/04/06 01:15:01 momjian Exp $ # #------------------------------------------------------------------------- @@ -24,7 +24,7 @@ initlocation: initlocation.sh cp -p initlocation.sh initlocation install: initlocation - $(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< + $(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$< clean: rm -f initlocation diff --git a/src/bin/ipcclean/Makefile b/src/bin/ipcclean/Makefile index 0286c0c1f323b325901683e51a16991d36d02e14..86b842c689fa034c2d4edcfd44852b90284cba56 100644 --- a/src/bin/ipcclean/Makefile +++ b/src/bin/ipcclean/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/Makefile,v 1.5 1998/04/06 00:29:03 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/ipcclean/Attic/Makefile,v 1.6 1998/04/06 01:15:09 momjian Exp $ # #------------------------------------------------------------------------- @@ -23,7 +23,7 @@ ipcclean: sed $(SEDSCRIPT) <ipcclean.sh >ipcclean install: ipcclean - $(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$< + $(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$< clean: rm -f ipcclean diff --git a/src/bin/pg_dump/Makefile.in b/src/bin/pg_dump/Makefile.in index 7543d338b75685fb0cdc8302bc63e01bbd9a61de..efdbf6399c0d1b2f02f0f81fb6fa8a01cebd341b 100644 --- a/src/bin/pg_dump/Makefile.in +++ b/src/bin/pg_dump/Makefile.in @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/Makefile.in,v 1.7 1998/04/06 00:29:08 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/Makefile.in,v 1.8 1998/04/06 01:15:16 momjian Exp $ # #------------------------------------------------------------------------- @@ -39,8 +39,8 @@ submake: $(MAKE) -C $(LIBPQDIR) libpq.a install: pg_dump - $(INSTALL) $(INSTL_EXE_OPTS) pg_dump $(BINDIR)/pg_dump - $(INSTALL) $(INSTL_EXE_OPTS) pg_dumpall $(BINDIR)/pg_dumpall + $(INSTALL) $(INSTL_EXE_OPTS) pg_dump $(DESTDIR)$(BINDIR)/pg_dump + $(INSTALL) $(INSTL_EXE_OPTS) pg_dumpall $(DESTDIR)$(BINDIR)/pg_dumpall depend dep: $(CC) -MM $(CFLAGS) *.c >depend diff --git a/src/bin/pg_id/Makefile b/src/bin/pg_id/Makefile index 075ced9a36aaef12ada3b48d620cc1d326994148..69496059434f2f7b59680ece228290ee68156a25 100644 --- a/src/bin/pg_id/Makefile +++ b/src/bin/pg_id/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/Makefile,v 1.9 1998/04/06 00:29:14 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/pg_id/Attic/Makefile,v 1.10 1998/04/06 01:15:24 momjian Exp $ # #------------------------------------------------------------------------- @@ -33,7 +33,7 @@ $(LIBPQDIR)/libpq.a: $(MAKE) -C $(LIBPQDIR) libpq.a install: pg_id - $(INSTALL) $(INSTL_EXE_OPTS) pg_id $(BINDIR)/pg_id + $(INSTALL) $(INSTL_EXE_OPTS) pg_id $(DESTDIR)$(BINDIR)/pg_id depend dep: $(CC) -MM $(CFLAGS) *.c >depend diff --git a/src/bin/pg_passwd/Makefile b/src/bin/pg_passwd/Makefile index 408640fea52ea62bac741b1212bfde396ce4ac9e..1ef0960d66f8f56bffc4296669dc04f254cb9c82 100644 --- a/src/bin/pg_passwd/Makefile +++ b/src/bin/pg_passwd/Makefile @@ -15,7 +15,7 @@ pg_passwd: $(OBJS) $(CC) -o pg_passwd $(OBJS) $(LDFLAGS) install: pg_passwd - $(INSTALL) $(INSTL_EXE_OPTS) pg_passwd $(BINDIR)/pg_passwd + $(INSTALL) $(INSTL_EXE_OPTS) pg_passwd $(DESTDIR)$(BINDIR)/pg_passwd .PHONY: submake submake: diff --git a/src/bin/pg_version/Makefile.in b/src/bin/pg_version/Makefile.in index 8a10428ee3fb488eaf38e0264813e6522b77f4de..819dfbccf71384f042dad4d05c4a7b149624cd69 100644 --- a/src/bin/pg_version/Makefile.in +++ b/src/bin/pg_version/Makefile.in @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/pg_version/Attic/Makefile.in,v 1.3 1998/04/06 00:29:36 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/pg_version/Attic/Makefile.in,v 1.4 1998/04/06 01:15:44 momjian Exp $ # #------------------------------------------------------------------------- @@ -28,7 +28,7 @@ submake: $(MAKE) -C ../../utils version.o install: pg_version - $(INSTALL) $(INSTL_EXE_OPTS) pg_version $(BINDIR)/pg_version + $(INSTALL) $(INSTL_EXE_OPTS) pg_version $(DESTDIR)$(BINDIR)/pg_version depend dep: $(CC) -MM $(CFLAGS) *.c >depend diff --git a/src/bin/pgtclsh/Makefile b/src/bin/pgtclsh/Makefile index 1df38a830d38d9b1fb2a8d9bbacd2c519a80699b..3aee0223cc753c08754380fc412e6fbb6dc738c3 100644 --- a/src/bin/pgtclsh/Makefile +++ b/src/bin/pgtclsh/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/pgtclsh/Attic/Makefile,v 1.15 1998/04/06 00:29:46 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/pgtclsh/Attic/Makefile,v 1.16 1998/04/06 01:15:51 momjian Exp $ # #------------------------------------------------------------------------- @@ -37,8 +37,8 @@ pgtksh: pgtkAppInit.o $(X11_LIBS) -lm $(LDFLAGS) install: pgtclsh pgtksh - $(INSTALL) $(INSTL_EXE_OPTS) pgtclsh $(BINDIR)/pgtclsh - $(INSTALL) $(INSTL_EXE_OPTS) pgtksh $(BINDIR)/pgtksh + $(INSTALL) $(INSTL_EXE_OPTS) pgtclsh $(DESTDIR)$(BINDIR)/pgtclsh + $(INSTALL) $(INSTL_EXE_OPTS) pgtksh $(DESTDIR)$(BINDIR)/pgtksh clean: rm -f pgtclAppInit.o pgtkAppInit.o pgtclsh pgtksh diff --git a/src/bin/psql/Makefile.in b/src/bin/psql/Makefile.in index 3a27c45a2ca53cc28c535d2700901f241e6ef82c..e01674491e315b5ad527678243d3eb520209aaa3 100644 --- a/src/bin/psql/Makefile.in +++ b/src/bin/psql/Makefile.in @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.9 1998/04/06 00:29:56 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.10 1998/04/06 01:15:55 momjian Exp $ # #------------------------------------------------------------------------- @@ -39,7 +39,7 @@ submake: $(MAKE) -C $(LIBPQDIR) libpq.a install: psql - $(INSTALL) $(INSTL_EXE_OPTS) psql $(BINDIR)/psql + $(INSTALL) $(INSTL_EXE_OPTS) psql $(DESTDIR)$(BINDIR)/psql depend dep: $(CC) -MM $(CFLAGS) *.c >depend diff --git a/src/interfaces/ecpg/include/Makefile b/src/interfaces/ecpg/include/Makefile index bfb6840b68c2ac0985961c55a3233fbd6bdbd7d8..caa13a8d9162c69d4e97c1a012fec985c5934f53 100644 --- a/src/interfaces/ecpg/include/Makefile +++ b/src/interfaces/ecpg/include/Makefile @@ -6,13 +6,13 @@ all clean:: @echo Nothing to be done. install:: - $(INSTALL) $(INSTLOPTS) ecpglib.h $(HEADERDIR) - $(INSTALL) $(INSTLOPTS) ecpgtype.h $(HEADERDIR) - $(INSTALL) $(INSTLOPTS) sqlca.h $(HEADERDIR) + $(INSTALL) $(INSTLOPTS) ecpglib.h $(DESTDIR)$(HEADERDIR) + $(INSTALL) $(INSTLOPTS) ecpgtype.h $(DESTDIR)$(HEADERDIR) + $(INSTALL) $(INSTLOPTS) sqlca.h $(DESTDIR)$(HEADERDIR) uninstall:: - rm -f $(HEADERDIR)/ecpglib.h - rm -f $(HEADERDIR)/ecpgtype.h - rm -f $(HEADERDIR)/sqlca.h + rm -f $(DESTDIR)$(HEADERDIR)/ecpglib.h + rm -f $(DESTDIR)$(HEADERDIR)/ecpgtype.h + rm -f $(DESTDIR)$(HEADERDIR)/sqlca.h dep depend: diff --git a/src/interfaces/ecpg/lib/Makefile.in b/src/interfaces/ecpg/lib/Makefile.in index 31a81f088deec78c3afe92681be0d831173fc92d..0326f992ed1c37479e91e448f0364f88452034c2 100644 --- a/src/interfaces/ecpg/lib/Makefile.in +++ b/src/interfaces/ecpg/lib/Makefile.in @@ -56,14 +56,14 @@ clean: dep depend: install: libecpg.a $(shlib) $(install-shlib-dep) - $(INSTALL) $(INSTLOPTS) libecpg.a $(LIBDIR) + $(INSTALL) $(INSTLOPTS) libecpg.a $(DESTDIR)$(LIBDIR) install-shlib: - $(INSTALL) $(INSTLOPTS) $(shlib) $(LIBDIR) - ln -sf $(shlib) $(LIBDIR)/libecpg.so + $(INSTALL) $(INSTLOPTS) $(shlib) $(DESTDIR)$(LIBDIR) + ln -sf $(shlib) $(DESTDIR)$(LIBDIR)/libecpg.so uninstall:: - rm -f $(LIBDIR)/libecpg.a $(LIBDIR)/$(shlib) + rm -f $(DESTDIR)$(LIBDIR)/libecpg.a $(DESTDIR)$(LIBDIR)/$(shlib) # Rules that do something libecpg.a : libecpg.a(ecpglib.o) libecpg.a(typename.o) diff --git a/src/interfaces/ecpg/preproc/Makefile b/src/interfaces/ecpg/preproc/Makefile index af684bd3d572898cc89a3476c4ad783712035b2e..89fa3373c473807a651032d4795fa1d69f3913db 100644 --- a/src/interfaces/ecpg/preproc/Makefile +++ b/src/interfaces/ecpg/preproc/Makefile @@ -7,7 +7,7 @@ PATCHLEVEL=0 CFLAGS+=-I../include -DMAJOR_VERSION=$(MAJOR_VERSION) \ -DMINOR_VERSION=$(MINOR_VERSION) -DPATCHLEVEL=$(PATCHLEVEL) \ - -DINCLUDE_PATH=\"$(HEADERDIR)\" + -DINCLUDE_PATH=\"$(DESTDIR)$(HEADERDIR)\" all:: ecpg @@ -15,10 +15,10 @@ clean: rm -f *.o core a.out ecpg y.tab.h y.tab.c pgc.c *~ install: all - $(INSTALL) $(INSTL_EXE_OPTS) ecpg $(BINDIR) + $(INSTALL) $(INSTL_EXE_OPTS) ecpg $(DESTDIR)$(BINDIR) uninstall: - rm -f $(BINDIR)/ecpg + rm -f $(DESTDIR)$(BINDIR)/ecpg dep depend: $(CC) -MM $(CFLAGS) *.c > depend diff --git a/src/interfaces/libpgtcl/Makefile.in b/src/interfaces/libpgtcl/Makefile.in index e8bff5a13154184aa3ed2886b35878e2c3b79903..560ca79da5c58a184036b0859e5bbb1de22efdbf 100644 --- a/src/interfaces/libpgtcl/Makefile.in +++ b/src/interfaces/libpgtcl/Makefile.in @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.8 1998/04/06 00:30:46 momjian Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.9 1998/04/06 01:16:38 momjian Exp $ # #------------------------------------------------------------------------- @@ -94,12 +94,12 @@ beforeinstall-headers: @if [ ! -d $(HEADERDIR) ]; then mkdir $(HEADERDIR); fi install-libpgtcl: libpgtcl.a - $(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.a $(LIBDIR)/libpgtcl.a + $(INSTALL) $(INSTL_LIB_OPTS) libpgtcl.a $(DESTDIR)$(LIBDIR)/libpgtcl.a install-shlib: $(shlib) $(INSTALL) $(INSTL_LIB_OPTS) $(shlib) \ - $(LIBDIR)/$(shlib) - ln -sf $(shlib) $(LIBDIR)/libpgtcl.so + $(DESTDIR)$(LIBDIR)/$(shlib) + ln -sf $(shlib) $(DESTDIR)$(LIBDIR)/libpgtcl.so .PHONY: clean clean: diff --git a/src/interfaces/libpq++/Makefile b/src/interfaces/libpq++/Makefile index a56f2b6249c4837cd94410aaa0a7ae1b09cfe626..9b9081e3f1e32112cb575d6f96e99362a1568037 100644 --- a/src/interfaces/libpq++/Makefile +++ b/src/interfaces/libpq++/Makefile @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile,v 1.12 1998/04/06 00:31:13 momjian Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile,v 1.13 1998/04/06 01:16:47 momjian Exp $ # #------------------------------------------------------------------------- @@ -99,15 +99,15 @@ beforeinstall-headers: @if [ ! -d $(LIBPGXXHEADERDIR) ]; then mkdir $(LIBPGXXHEADERDIR); fi beforeinstall-lib: - @if [ ! -d $(LIBDIR) ] ; then mkdir $(LIBDIR); fi + @if [ ! -d $(DESTDIR)/$(LIBDIR) ] ; then mkdir $(DESTDIR)/$(LIBDIR); fi install-$(LIBNAME): $(LIBNAME).a beforeinstall-lib - $(INSTALL) $(INSTL_LIB_OPTS) $(LIBNAME).a $(LIBDIR)/$(LIBNAME).a + $(INSTALL) $(INSTL_LIB_OPTS) $(LIBNAME).a $(DESTDIR)$(LIBDIR)/$(LIBNAME).a install-shlib: $(SHLIBNAME) beforeinstall-lib - $(INSTALL) $(INSTL_SHLIB_OPTS) $(SHLIB) $(LIBDIR)/$(SHLIB) - rm -f $(LIBDIR)/libpq++.so - ln -sf $(SHLIB) $(LIBDIR)/libpq++.so + $(INSTALL) $(INSTL_SHLIB_OPTS) $(SHLIB) $(DESTDIR)/$(LIBDIR)/$(SHLIB) + rm -f $(DESTDIR)/$(LIBDIR)/libpq++.so + ln -sf $(SHLIB) $(DESTDIR)/$(LIBDIR)/libpq++.so doc: diff --git a/src/interfaces/libpq/Makefile.in b/src/interfaces/libpq/Makefile.in index ad966e8944471591732b31aa1bf3482894d5a4ce..2598ee5cd2735cade7f3d186a2b691b645ea6e4b 100644 --- a/src/interfaces/libpq/Makefile.in +++ b/src/interfaces/libpq/Makefile.in @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.11 1998/04/06 00:30:58 momjian Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.12 1998/04/06 01:16:43 momjian Exp $ # #------------------------------------------------------------------------- @@ -170,12 +170,12 @@ beforeinstall-headers: then mkdir $(HEADERDIR)/commands; fi install-libpq: libpq.a - $(INSTALL) $(INSTL_LIB_OPTS) libpq.a $(LIBDIR)/libpq.a + $(INSTALL) $(INSTL_LIB_OPTS) libpq.a $(DESTDIR)$(LIBDIR)/libpq.a install-shlib: $(shlib) - $(INSTALL) $(INSTL_LIB_OPTS) $(shlib) $(LIBDIR)/$(shlib) - rm -f $(LIBDIR)/libpq.so - ln -s $(shlib) $(LIBDIR)/libpq.so + $(INSTALL) $(INSTL_LIB_OPTS) $(shlib) $(DESTDIR)$(LIBDIR)/$(shlib) + rm -f $(DESTDIR)$(LIBDIR)/libpq.so + ln -s $(shlib) $(DESTDIR)$(LIBDIR)/libpq.so depend dep: $(CC) -MM $(CFLAGS) *.c >depend diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index c5d9376a61ed414955ee590d9fdf8ef77d8c4ad7..45075147638117010af4d18e580be06d7ea8f1c5 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -4,7 +4,7 @@ # Makefile for the pltcl shared object # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.3 1998/04/06 00:31:59 momjian Exp $ +# $Header: /cvsroot/pgsql/src/pl/tcl/Makefile,v 1.4 1998/04/06 01:16:55 momjian Exp $ # #------------------------------------------------------------------------- @@ -87,6 +87,6 @@ clean: rm -f Makefile.tcldefs install: all - $(INSTALL) $(INSTL_LIB_OPTS) $(DLOBJS) $(LIBDIR)/$(DLOBJS) + $(INSTALL) $(INSTL_LIB_OPTS) $(DLOBJS) $(DESTDIR)$(LIBDIR)/$(DLOBJS) dep depend: