Skip to content
Snippets Groups Projects
Commit 22e7c065 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Update plperl makefile.

parent e3415aa8
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/pl/Makefile,v 1.1 1998/10/01 03:38:30 scrappy Exp $ # $Header: /cvsroot/pgsql/src/pl/Makefile,v 1.2 2000/01/20 22:31:22 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -20,4 +20,30 @@ include $(SRCDIR)/Makefile.global ...@@ -20,4 +20,30 @@ include $(SRCDIR)/Makefile.global
ifeq ($(USE_TCL), true) ifeq ($(USE_TCL), true)
$(MAKE) -C tcl $@ $(MAKE) -C tcl $@
endif endif
ifeq ($(USE_PERL), true)
if [ "$@" = "install" ]; then \
$(MAKE) $(MFLAGS) install-plperl; \
else \
$(MAKE) $(MFLAGS) plperl/Makefile; \
$(MAKE) $(MFLAGS) -C plperl $@; \
fi
endif
plperl/Makefile: plperl/Makefile.PL
cd plperl && $(PERL) Makefile.PL
install-plperl: plperl/Makefile
$(MAKE) -C plperl clean
cd plperl && POSTGRES_HOME="$(POSTGRESDIR)" $(PERL) Makefile.PL
$(MAKE) -C plperl all
-@if [ -w `sed -n -e 's/^ *INSTALLSITELIB *= *//p' plperl/Makefile` ]; then \
$(MAKE) $(MFLAGS) -C plperl install; \
rm -f plperl/Makefile; \
else \
echo "Skipping install of Perl module for lack of permissions."; \
echo "To install it, cd into interfaces/plperl, su to become the"; \
echo "appropriate user, and do '$(MAKE) install'."; \
fi
.PHONY: install-plperl
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment