]> granicus.if.org Git - postgresql/blob - contrib/Makefile
Add CVS version labels to all install/uninstall scripts.
[postgresql] / contrib / Makefile
1 # $PostgreSQL: pgsql/contrib/Makefile,v 1.81 2007/10/15 21:36:49 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                 cube            \
12                 dblink          \
13                 dict_int        \
14                 dict_xsyn       \
15                 earthdistance   \
16                 fuzzystrmatch   \
17                 hstore          \
18                 intagg          \
19                 intarray        \
20                 isn             \
21                 lo              \
22                 ltree           \
23                 oid2name        \
24                 pageinspect     \
25                 pg_buffercache  \
26                 pg_freespacemap \
27                 pg_standby      \
28                 pg_trgm         \
29                 pgbench         \
30                 pgcrypto        \
31                 pgrowlocks      \
32                 pgstattuple     \
33                 seg             \
34                 spi             \
35                 tablefunc       \
36                 test_parser     \
37                 vacuumlo
38
39 ifeq ($(with_openssl),yes)
40 WANTED_DIRS += sslinfo
41 endif
42
43 ifeq ($(with_ossp_uuid),yes)
44 WANTED_DIRS += uuid-ossp
45 endif
46
47 ifeq ($(with_libxml),yes)
48 ifeq ($(with_libxslt),yes)
49 WANTED_DIRS += xml2
50 endif
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