]> granicus.if.org Git - postgresql/blob - src/Makefile
Fix things so that updatable views work with partitioned tables.
[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         backend/replication/pgoutput \
26         fe_utils \
27         bin \
28         pl \
29         makefiles \
30         test/regress \
31         test/perl
32
33 # There are too many interdependencies between the subdirectories, so
34 # don't attempt parallel make here.
35 .NOTPARALLEL:
36
37 $(recurse)
38
39 install: install-local
40
41 install-local: installdirs-local
42         $(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
43         $(INSTALL_DATA) Makefile.port '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.port'
44         $(INSTALL_DATA) $(srcdir)/Makefile.shlib '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.shlib'
45         $(INSTALL_DATA) $(srcdir)/nls-global.mk '$(DESTDIR)$(pgxsdir)/$(subdir)/nls-global.mk'
46
47 installdirs: installdirs-local
48
49 installdirs-local:
50         $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
51
52 uninstall: uninstall-local
53
54 uninstall-local:
55         rm -f $(addprefix '$(DESTDIR)$(pgxsdir)/$(subdir)'/, Makefile.global Makefile.port Makefile.shlib nls-global.mk)
56
57 distprep:
58         $(MAKE) -C test/isolation $@
59
60 clean:
61         $(MAKE) -C test $@
62         $(MAKE) -C tutorial NO_PGXS=1 $@
63         $(MAKE) -C test/isolation $@
64         $(MAKE) -C test/thread $@
65
66 distclean maintainer-clean:
67         $(MAKE) -C test $@
68         $(MAKE) -C tutorial NO_PGXS=1 $@
69         $(MAKE) -C test/isolation $@
70         $(MAKE) -C test/thread $@
71         rm -f Makefile.port Makefile.global
72
73 coverage:
74         $(MAKE) -C timezone $@
75         $(MAKE) -C backend $@
76         $(MAKE) -C backend/utils/mb/conversion_procs $@
77         $(MAKE) -C backend/snowball $@
78         $(MAKE) -C interfaces $@
79         $(MAKE) -C backend/replication/libpqwalreceiver $@
80         $(MAKE) -C bin $@
81         $(MAKE) -C pl $@
82
83
84 .PHONY: install-local installdirs-local uninstall-local