1 #-------------------------------------------------------------------------
4 # Makefile for src/pl (procedural languages)
6 # Copyright (c) 1994, Regents of the University of California
10 # $Header: /cvsroot/pgsql/src/pl/Makefile,v 1.2 2000/01/20 22:31:22 momjian Exp $
12 #-------------------------------------------------------------------------
15 include $(SRCDIR)/Makefile.global
18 .DEFAULT all install clean dep depend distclean:
20 ifeq ($(USE_TCL), true)
23 ifeq ($(USE_PERL), true)
24 if [ "$@" = "install" ]; then \
25 $(MAKE) $(MFLAGS) install-plperl; \
27 $(MAKE) $(MFLAGS) plperl/Makefile; \
28 $(MAKE) $(MFLAGS) -C plperl $@; \
32 plperl/Makefile: plperl/Makefile.PL
33 cd plperl && $(PERL) Makefile.PL
35 install-plperl: plperl/Makefile
36 $(MAKE) -C plperl clean
37 cd plperl && POSTGRES_HOME="$(POSTGRESDIR)" $(PERL) Makefile.PL
39 -@if [ -w `sed -n -e 's/^ *INSTALLSITELIB *= *//p' plperl/Makefile` ]; then \
40 $(MAKE) $(MFLAGS) -C plperl install; \
41 rm -f plperl/Makefile; \
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'."; \
48 .PHONY: install-plperl