postgresql/contrib/Makefile

68 lines
1.2 KiB
Makefile
Raw Normal View History

# $PostgreSQL: pgsql/contrib/Makefile,v 1.75 2007/04/21 17:26:17 petere Exp $
2000-06-16 02:55:34 +08:00
subdir = contrib
top_builddir = ..
include $(top_builddir)/src/Makefile.global
2000-06-16 02:55:34 +08:00
WANTED_DIRS = \
adminpack \
btree_gist \
2001-08-24 00:54:25 +08:00
chkpass \
2000-12-12 04:40:59 +08:00
cube \
2001-06-19 01:20:56 +08:00
dblink \
earthdistance \
fuzzystrmatch \
hstore \
2002-08-30 09:44:00 +08:00
intagg \
intarray \
isn \
2001-02-10 20:07:12 +08:00
lo \
ltree \
oid2name \
pg_buffercache \
pg_freespacemap \
pg_standby \
pg_trgm \
2000-06-16 02:55:34 +08:00
pgbench \
pgcrypto \
2006-04-23 10:17:59 +08:00
pgrowlocks \
2001-10-01 09:52:38 +08:00
pgstattuple \
2001-02-10 20:07:12 +08:00
seg \
spi \
2002-07-31 00:32:20 +08:00
tablefunc \
2003-07-25 00:54:58 +08:00
tsearch2 \
vacuumlo
ifeq ($(with_openssl),yes)
WANTED_DIRS += sslinfo
endif
ifeq ($(with_ossp_uuid),yes)
WANTED_DIRS += uuid-ossp
endif
2007-04-15 20:48:24 +08:00
ifeq ($(with_libxml),yes)
ifeq ($(with_libxslt),yes)
WANTED_DIRS += xml2
endif
endif
# Missing:
# start-scripts \ (does not have a makefile)
2007-04-15 20:48:24 +08:00
all install installdirs uninstall distprep clean distclean maintainer-clean:
@for dir in $(WANTED_DIRS); do \
$(MAKE) -C $$dir $@ || exit; \
2000-06-16 02:55:34 +08:00
done
# We'd like check operations to run all the subtests before failing;
# also insert a sleep to ensure the previous test backend exited before
# we try to drop the regression database.
check installcheck:
@CHECKERR=0; for dir in $(WANTED_DIRS); do \
sleep 1; \
$(MAKE) -C $$dir $@ || CHECKERR=$$?; \
done; \
exit $$CHECKERR