]> granicus.if.org Git - postgresql/blob - contrib/Makefile
2a3b099afaf37ceac8846bc39eb50f56d3ccee7b
[postgresql] / contrib / Makefile
1 #
2 # The PostgreSQL contrib tree Makefile
3 #
4 #       Portions Copyright (c) 1999-2000, PostgreSQL, Inc
5 #
6 # $Header: /cvsroot/pgsql/contrib/Makefile,v 1.5 2000/06/19 13:52:59 momjian Exp $
7 #
8
9 TOPDIR = ..
10 include Makefile.global
11
12 WANTED_DIRS =   array           \
13                 earthdistance   \
14                 findoidjoins    \
15                 fulltextindex   \
16                 isbn_issn       \
17                 linux           \
18                 lo              \
19                 mSQL-interface  \
20                 miscutil        \
21                 noupdate        \
22                 pg_dumplo       \
23                 pgbench         \
24                 soundex         \
25                 spi             \
26                 string          \
27                 tips            \
28                 tools           \
29                 unixdate        \
30                 userlock        \
31                 vacuumlo        
32         #       odbc
33
34
35 all:
36         for dir in $(WANTED_DIRS); do \
37             if [ -e $$dir/Makefile ]; then \
38                 $(MAKE) -C $$dir $@ ; \
39             fi; \
40         done
41
42
43 install:
44         ../config/mkinstalldirs $(CONTRIB_BINDIR) $(CONTRIB_MODDIR) $(CONTRIB_DOCDIR) $(CONTRIB_SQLDIR) $(CONTRIB_EXAMPLESDIR)
45         for dir in $(WANTED_DIRS); do \
46             if [ -e $$dir/Makefile ]; then \
47                 $(MAKE) -C $$dir $@ ; \
48             fi; \
49         done
50         $(INSTALL) $(INSTL_LIB_OPTS) Contrib.index $(CONTRIB_DOCDIR);
51
52
53 .DEFAULT:
54         for dir in $(WANTED_DIRS); do \
55             if [ -e $$dir/Makefile ]; then \
56                 $(MAKE) -C $$dir $@ ; \
57             fi; \
58         done