OSDN Git Service

Capitalization fixes
[pg-rex/syncrep.git] / 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         port \
17         timezone \
18         backend \
19         backend/utils/mb/conversion_procs \
20         backend/snowball \
21         include \
22         interfaces \
23         backend/replication/libpqwalreceiver \
24         bin \
25         pl \
26         makefiles \
27         test/regress
28
29 # There are too many interdependencies between the subdirectories, so
30 # don't attempt parallel make here.
31 .NOTPARALLEL:
32
33 $(recurse)
34
35 install: install-local
36
37 install-local: installdirs-local
38         $(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
39         $(INSTALL_DATA) Makefile.port '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.port'
40         $(INSTALL_DATA) $(srcdir)/Makefile.shlib '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.shlib'
41         $(INSTALL_DATA) $(srcdir)/nls-global.mk '$(DESTDIR)$(pgxsdir)/$(subdir)/nls-global.mk'
42
43 installdirs: installdirs-local
44
45 installdirs-local:
46         $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
47
48 uninstall: uninstall-local
49
50 uninstall-local:
51         rm -f $(addprefix '$(DESTDIR)$(pgxsdir)/$(subdir)'/, Makefile.global Makefile.port Makefile.shlib nls-global.mk)
52
53 distprep:
54         $(MAKE) -C test/isolation $@
55
56 clean:
57         $(MAKE) -C test $@
58         $(MAKE) -C tutorial NO_PGXS=1 $@
59         $(MAKE) -C test/isolation $@
60         $(MAKE) -C test/thread $@
61
62 distclean maintainer-clean:
63         $(MAKE) -C test $@
64         $(MAKE) -C tutorial NO_PGXS=1 $@
65         $(MAKE) -C test/isolation $@
66         $(MAKE) -C test/thread $@
67         rm -f Makefile.port Makefile.global
68
69 coverage:
70         $(MAKE) -C timezone $@
71         $(MAKE) -C backend $@
72         $(MAKE) -C backend/utils/mb/conversion_procs $@
73         $(MAKE) -C backend/snowball $@
74         $(MAKE) -C interfaces $@
75         $(MAKE) -C backend/replication/libpqwalreceiver $@
76         $(MAKE) -C bin $@
77         $(MAKE) -C pl $@
78
79
80 .PHONY: install-local installdirs-local uninstall-local