mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Update plperl makefile.
This commit is contained in:
parent
e3415aa834
commit
22e7c06506
@ -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
|
|||||||
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user