Update plperl makefile.

This commit is contained in:
Bruce Momjian 2000-01-20 22:31:23 +00:00
parent e3415aa834
commit 22e7c06506
2 changed files with 27 additions and 1 deletions

View File

@ -7,7 +7,7 @@
#
#
# 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
ifeq ($(USE_TCL), true)
$(MAKE) -C tcl $@
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