Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 22e7c06

Browse files
committed
Update plperl makefile.
1 parent e3415aa commit 22e7c06

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

src/pl/Makefile

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/pl/Makefile,v 1.1 1998/10/01 03:38:30 scrappy Exp $
10+
# $Header: /cvsroot/pgsql/src/pl/Makefile,v 1.2 2000/01/20 22:31:22 momjian Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -20,4 +20,30 @@ include $(SRCDIR)/Makefile.global
2020
ifeq ($(USE_TCL), true)
2121
$(MAKE) -C tcl $@
2222
endif
23+
ifeq ($(USE_PERL), true)
24+
if [ "$@" = "install" ]; then \
25+
$(MAKE) $(MFLAGS) install-plperl; \
26+
else \
27+
$(MAKE) $(MFLAGS) plperl/Makefile; \
28+
$(MAKE) $(MFLAGS) -C plperl $@; \
29+
fi
30+
endif
31+
32+
plperl/Makefile: plperl/Makefile.PL
33+
cd plperl && $(PERL) Makefile.PL
34+
35+
install-plperl: plperl/Makefile
36+
$(MAKE) -C plperl clean
37+
cd plperl && POSTGRES_HOME="$(POSTGRESDIR)" $(PERL) Makefile.PL
38+
$(MAKE) -C plperl all
39+
-@if [ -w `sed -n -e 's/^ *INSTALLSITELIB *= *//p' plperl/Makefile` ]; then \
40+
$(MAKE) $(MFLAGS) -C plperl install; \
41+
rm -f plperl/Makefile; \
42+
else \
43+
echo "Skipping install of Perl module for lack of permissions."; \
44+
echo "To install it, cd into interfaces/plperl, su to become the"; \
45+
echo "appropriate user, and do '$(MAKE) install'."; \
46+
fi
47+
48+
.PHONY: install-plperl
2349

File renamed without changes.

0 commit comments

Comments
 (0)