2002-03-13 01:05:06 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile for src
|
|
|
|
#
|
|
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
|
|
#
|
2010-09-20 22:08:53 +02:00
|
|
|
# src/Makefile
|
2002-03-13 01:05:06 +01:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
2000-06-12 05:54:03 +02:00
|
|
|
|
2002-03-13 01:05:06 +01:00
|
|
|
subdir = src
|
|
|
|
top_builddir = ..
|
|
|
|
include Makefile.global
|
2000-06-12 05:54:03 +02:00
|
|
|
|
2010-11-12 21:15:16 +01:00
|
|
|
SUBDIRS = \
|
|
|
|
port \
|
|
|
|
timezone \
|
|
|
|
backend \
|
|
|
|
backend/utils/mb/conversion_procs \
|
|
|
|
backend/snowball \
|
|
|
|
include \
|
|
|
|
interfaces \
|
|
|
|
backend/replication/libpqwalreceiver \
|
|
|
|
bin \
|
|
|
|
pl \
|
|
|
|
makefiles \
|
|
|
|
test/regress
|
2000-06-12 18:37:22 +02:00
|
|
|
|
2010-11-17 07:08:41 +01:00
|
|
|
# There are too many interdependencies between the subdirectories, so
|
|
|
|
# don't attempt parallel make here.
|
|
|
|
.NOTPARALLEL:
|
|
|
|
|
2010-11-12 21:15:16 +01:00
|
|
|
$(recurse)
|
2004-07-30 14:26:40 +02:00
|
|
|
|
|
|
|
install: install-local
|
|
|
|
|
|
|
|
install-local: installdirs-local
|
2005-12-09 22:19:36 +01:00
|
|
|
$(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
|
|
|
|
$(INSTALL_DATA) Makefile.port '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.port'
|
|
|
|
$(INSTALL_DATA) $(srcdir)/Makefile.shlib '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.shlib'
|
|
|
|
$(INSTALL_DATA) $(srcdir)/nls-global.mk '$(DESTDIR)$(pgxsdir)/$(subdir)/nls-global.mk'
|
2002-03-13 01:05:06 +01:00
|
|
|
|
2004-07-30 14:26:40 +02:00
|
|
|
installdirs: installdirs-local
|
|
|
|
|
|
|
|
installdirs-local:
|
2009-08-27 00:24:44 +02:00
|
|
|
$(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
|
2004-07-30 14:26:40 +02:00
|
|
|
|
|
|
|
uninstall: uninstall-local
|
|
|
|
|
|
|
|
uninstall-local:
|
2005-12-09 22:19:36 +01:00
|
|
|
rm -f $(addprefix '$(DESTDIR)$(pgxsdir)/$(subdir)'/, Makefile.global Makefile.port Makefile.shlib nls-global.mk)
|
2004-07-30 14:26:40 +02:00
|
|
|
|
2011-03-10 06:03:26 +01:00
|
|
|
distprep:
|
|
|
|
$(MAKE) -C test/isolation $@
|
|
|
|
|
2002-03-13 01:05:06 +01:00
|
|
|
clean:
|
|
|
|
$(MAKE) -C test $@
|
2005-01-13 19:23:22 +01:00
|
|
|
$(MAKE) -C tutorial NO_PGXS=1 $@
|
2011-03-10 06:03:26 +01:00
|
|
|
$(MAKE) -C test/isolation $@
|
2006-02-04 02:04:20 +01:00
|
|
|
$(MAKE) -C test/thread $@
|
2002-03-13 01:05:06 +01:00
|
|
|
|
|
|
|
distclean maintainer-clean:
|
2008-03-18 17:24:50 +01:00
|
|
|
$(MAKE) -C test $@
|
|
|
|
$(MAKE) -C tutorial NO_PGXS=1 $@
|
2011-03-10 06:03:26 +01:00
|
|
|
$(MAKE) -C test/isolation $@
|
2008-03-18 17:24:50 +01:00
|
|
|
$(MAKE) -C test/thread $@
|
2002-03-13 01:05:06 +01:00
|
|
|
rm -f Makefile.port Makefile.global
|
2004-07-30 14:26:40 +02:00
|
|
|
|
2009-08-07 22:50:22 +02:00
|
|
|
coverage:
|
|
|
|
$(MAKE) -C timezone $@
|
|
|
|
$(MAKE) -C backend $@
|
|
|
|
$(MAKE) -C backend/utils/mb/conversion_procs $@
|
|
|
|
$(MAKE) -C backend/snowball $@
|
|
|
|
$(MAKE) -C interfaces $@
|
2010-01-20 10:16:24 +01:00
|
|
|
$(MAKE) -C backend/replication/libpqwalreceiver $@
|
2009-08-07 22:50:22 +02:00
|
|
|
$(MAKE) -C bin $@
|
|
|
|
$(MAKE) -C pl $@
|
|
|
|
|
2004-07-30 14:26:40 +02:00
|
|
|
|
|
|
|
.PHONY: install-local installdirs-local uninstall-local
|