File tree 4 files changed +20
-10
lines changed 4 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 7
7
#
8
8
#
9
9
# IDENTIFICATION
10
- # $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.39 1998/10/17 03:49:59 momjian Exp $
10
+ # $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.40 1998/10/18 02:33:54 tgl Exp $
11
11
#
12
12
#-------------------------------------------------------------------------
13
13
@@ -102,7 +102,6 @@ distclean: clean
102
102
interfaces/libpgtcl/Makefile \
103
103
interfaces/odbc/GNUmakefile \
104
104
interfaces/odbc/Makefile.global \
105
- interfaces/perl5/Makefile.PL \
106
105
pl/plpgsql/src/Makefile \
107
106
pl/plpgsql/src/mklang.sql \
108
107
pl/tcl/mkMakefile.tcldefs.sh
Original file line number Diff line number Diff line change @@ -6316,7 +6316,6 @@ trap 'rm -fr `echo "GNUmakefile
6316
6316
interfaces/libpgtcl/Makefile
6317
6317
interfaces/odbc/GNUmakefile
6318
6318
interfaces/odbc/Makefile.global
6319
- interfaces/perl5/Makefile.PL
6320
6319
pl/plpgsql/src/Makefile
6321
6320
pl/plpgsql/src/mklang.sql
6322
6321
pl/tcl/mkMakefile.tcldefs.sh
@@ -6479,7 +6478,6 @@ CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile
6479
6478
interfaces/libpgtcl/Makefile
6480
6479
interfaces/odbc/GNUmakefile
6481
6480
interfaces/odbc/Makefile.global
6482
- interfaces/perl5/Makefile.PL
6483
6481
pl/plpgsql/src/Makefile
6484
6482
pl/plpgsql/src/mklang.sql
6485
6483
pl/tcl/mkMakefile.tcldefs.sh
Original file line number Diff line number Diff line change @@ -891,7 +891,6 @@ AC_OUTPUT(
891
891
interfaces/libpgtcl/Makefile
892
892
interfaces/odbc/GNUmakefile
893
893
interfaces/odbc/Makefile.global
894
- interfaces/perl5/Makefile.PL
895
894
pl/plpgsql/src/Makefile
896
895
pl/plpgsql/src/mklang.sql
897
896
pl/tcl/mkMakefile.tcldefs.sh
Original file line number Diff line number Diff line change 7
7
#
8
8
#
9
9
# IDENTIFICATION
10
- # $Header: /cvsroot/pgsql/src/interfaces/Makefile,v 1.18 1998/10/16 15:31:04 momjian Exp $
10
+ # $Header: /cvsroot/pgsql/src/interfaces/Makefile,v 1.19 1998/10/18 02:33:56 tgl Exp $
11
11
#
12
12
# -------------------------------------------------------------------------
13
13
14
14
SRCDIR = ..
15
15
include $(SRCDIR ) /Makefile.global
16
16
17
17
18
- PERL_CLEAN := DO_NOTHING
18
+ # Note: the klugery for perl5 is to ensure that the perl5 shared lib
19
+ # gets built with the correct path to the installed location of libpq
20
+ # during "make install", but is built against the local tree during
21
+ # ordinary building and testing.
19
22
20
23
.DEFAULT all install clean dep depend distclean :
21
24
$(MAKE ) -C libpq $@
@@ -29,13 +32,24 @@ ifeq ($(USE_TCL), true)
29
32
$(MAKE) -C libpgtcl $@
30
33
endif
31
34
ifeq ($(USE_PERL ) , true)
32
- -$(MAKE) -C perl5 $(PERL_CLEAN)
33
- $(MAKE) perl5/Makefile
34
- $(MAKE) -C perl5 $@
35
+ if [ "$@" = "install" ]; then \
36
+ $(MAKE) $(MFLAGS) install-perl5; \
37
+ else \
38
+ $(MAKE) $(MFLAGS) perl5/Makefile; \
39
+ $(MAKE) $(MFLAGS) -C perl5 $@; \
40
+ fi
35
41
endif
36
42
ifeq ($(USE_ODBC ) , true)
37
43
$(MAKE) -C odbc $@
38
44
endif
39
45
40
46
perl5/Makefile : perl5/Makefile.PL
41
47
cd perl5 && perl Makefile.PL
48
+
49
+ install-perl5 :
50
+ $(MAKE ) -C perl5 clean
51
+ cd perl5 && POSTGRES_HOME=" $( POSTGRESDIR) " perl Makefile.PL
52
+ $(MAKE ) -C perl5 install
53
+ rm -f perl5/Makefile
54
+
55
+ .PHONY : install-perl5
You can’t perform that action at this time.
0 commit comments