File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 7
7
#
8
8
#
9
9
# 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 $
11
11
#
12
12
# -------------------------------------------------------------------------
13
13
@@ -20,4 +20,30 @@ include $(SRCDIR)/Makefile.global
20
20
ifeq ($(USE_TCL ) , true)
21
21
$(MAKE) -C tcl $@
22
22
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
23
49
File renamed without changes.
You can’t perform that action at this time.
0 commit comments