]> granicus.if.org Git - postgresql/blob - src/Makefile
reindexdb: Fix mistake in help output
[postgresql] / src / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for src
4 #
5 # Copyright (c) 1994, Regents of the University of California
6 #
7 # src/Makefile
8 #
9 #-------------------------------------------------------------------------
10
11 subdir = src
12 top_builddir = ..
13 include Makefile.global
14
15 SUBDIRS = \
16         common \
17         port \
18         timezone \
19         backend \
20         backend/utils/mb/conversion_procs \
21         backend/snowball \
22         include \
23         interfaces \
24         backend/replication/libpqwalreceiver \
25         bin \
26         pl \
27         makefiles \
28         test/regress
29
30 # There are too many interdependencies between the subdirectories, so
31 # don't attempt parallel make here.
32 .NOTPARALLEL:
33
34 $(recurse)
35
36 install: install-local
37
38 install-local: installdirs-local
39         $(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
40         $(INSTALL_DATA) Makefile.port '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.port'
41         $(INSTALL_DATA) $(srcdir)/Makefile.shlib '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.shlib'
42         $(INSTALL_DATA) $(srcdir)/nls-global.mk '$(DESTDIR)$(pgxsdir)/$(subdir)/nls-global.mk'
43
44 installdirs: installdirs-local
45
46 installdirs-local:
47         $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
48
49 uninstall: uninstall-local
50
51 uninstall-local:
52         rm -f $(addprefix '$(DESTDIR)$(pgxsdir)/$(subdir)'/, Makefile.global Makefile.port Makefile.shlib nls-global.mk)
53
54 distprep:
55         $(MAKE) -C test/isolation $@
56
57 clean:
58         $(MAKE) -C test $@
59         $(MAKE) -C tutorial NO_PGXS=1 $@
60         $(MAKE) -C test/isolation $@
61         $(MAKE) -C test/thread $@
62
63 distclean maintainer-clean:
64         $(MAKE) -C test $@
65         $(MAKE) -C tutorial NO_PGXS=1 $@
66         $(MAKE) -C test/isolation $@
67         $(MAKE) -C test/thread $@
68         rm -f Makefile.port Makefile.global
69
70 coverage:
71         $(MAKE) -C timezone $@
72         $(MAKE) -C backend $@
73         $(MAKE) -C backend/utils/mb/conversion_procs $@
74         $(MAKE) -C backend/snowball $@
75         $(MAKE) -C interfaces $@
76         $(MAKE) -C backend/replication/libpqwalreceiver $@
77         $(MAKE) -C bin $@
78         $(MAKE) -C pl $@
79
80
81 .PHONY: install-local installdirs-local uninstall-local