1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Makefile cleanup for bin and pl subtrees. They should now support

all the standard semantics. Also get rid of Makefile.in's on the
way and instead declare all variables in Makefile.global.
This commit is contained in:
Peter Eisentraut
2000-06-27 00:32:06 +00:00
parent ecef326850
commit 5bb8b62983
31 changed files with 597 additions and 640 deletions

28
src/pl/plperl/GNUmakefile Normal file
View File

@@ -0,0 +1,28 @@
# $Header: /cvsroot/pgsql/src/pl/plperl/GNUmakefile,v 1.1 2000/06/27 00:31:49 petere Exp $
subdir = src/pl/plperl
top_builddir = ../../..
include ../../Makefile.global
plperl_installdir = $(libdir)
all: Makefile
$(MAKE) -f $< all
Makefile: Makefile.PL
@plperl_installdir='$(plperl_installdir)' \
EXTRA_INCLUDES='-I$(top_srcdir)/src/include $(INCLUDES)' \
$(PERL) $< POLLUTE=1
install: all installdirs
$(MAKE) -f $< install
installdirs:
$(mkinstalldirs) $(plperl_installdir)
uninstall:
rm -f $(libdir)/plperl$(DLSUFFIX)
clean distclean maintainer-clean:
-[ -f Makefile ] && $(MAKE) -f Makefile realclean

View File

@@ -1,40 +0,0 @@
# $Header: /cvsroot/pgsql/src/pl/plperl/Attic/GNUmakefile.in,v 1.2 2000/06/17 00:10:21 petere Exp $
srcdir = @srcdir@
VPATH = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ../../..
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
plperl_installdir = $(libdir)
mkinstalldirs = @mkinstalldirs@
PERL = @PERL@
INCLUDES = @INCLUDES@
all: Makefile
$(MAKE) -f $< all
Makefile: Makefile.PL
@plperl_installdir='$(plperl_installdir)' \
EXTRA_INCLUDES='-I$(top_srcdir)/src/include $(INCLUDES)' \
$(PERL) $< POLLUTE=1
install: Makefile installdirs
$(MAKE) -f $< install
installdirs:
$(mkinstalldirs) $(plperl_installdir)
clean:
-[ -f Makefile ] && $(MAKE) -f Makefile realclean
distclean maintainer-clean: clean
rm -f GNUmakefile
.PHONY: all install installdirs clean distclean maintainer-clean