OSDN Git Service

56f6772ba1a5feda834596c462db60109cdd3440
[pg-rex/syncrep.git] / contrib / Makefile
1 # $PostgreSQL: pgsql/contrib/Makefile,v 1.84 2008/07/29 18:31:20 tgl Exp $
2
3 subdir = contrib
4 top_builddir = ..
5 include $(top_builddir)/src/Makefile.global
6
7 WANTED_DIRS = \
8                 adminpack       \
9                 btree_gist      \
10                 chkpass         \
11                 citext          \
12                 cube            \
13                 dblink          \
14                 dict_int        \
15                 dict_xsyn       \
16                 earthdistance   \
17                 fuzzystrmatch   \
18                 hstore          \
19                 intagg          \
20                 intarray        \
21                 isn             \
22                 lo              \
23                 ltree           \
24                 oid2name        \
25                 pageinspect     \
26                 pg_buffercache  \
27                 pg_freespacemap \
28                 pg_standby      \
29                 pg_trgm         \
30                 pgbench         \
31                 pgcrypto        \
32                 pgrowlocks      \
33                 pgstattuple     \
34                 seg             \
35                 spi             \
36                 tablefunc       \
37                 test_parser     \
38                 tsearch2        \
39                 vacuumlo
40
41 ifeq ($(with_openssl),yes)
42 WANTED_DIRS += sslinfo
43 endif
44
45 ifeq ($(with_ossp_uuid),yes)
46 WANTED_DIRS += uuid-ossp
47 endif
48
49 ifeq ($(with_libxml),yes)
50 WANTED_DIRS += xml2
51 endif
52
53 # Missing:
54 #               start-scripts   \ (does not have a makefile)
55
56
57 all install installdirs uninstall distprep clean distclean maintainer-clean:
58         @for dir in $(WANTED_DIRS); do \
59                 $(MAKE) -C $$dir $@ || exit; \
60         done
61
62 # We'd like check operations to run all the subtests before failing.
63 check installcheck:
64         @CHECKERR=0; for dir in $(WANTED_DIRS); do \
65                 $(MAKE) -C $$dir $@ || CHECKERR=$$?; \
66         done; \
67         exit $$CHECKERR