]> granicus.if.org Git - postgresql/blob - src/Makefile
Repair a low-probability race condition identified by Qingqing Zhou.
[postgresql] / src / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for src
4 #
5 # Copyright (c) 1994, Regents of the University of California
6 #
7 # $PostgreSQL: pgsql/src/Makefile,v 1.39 2006/02/04 01:04:20 momjian Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 subdir = src
12 top_builddir = ..
13 include Makefile.global
14
15
16 all install installdirs uninstall dep depend distprep:
17         $(MAKE) -C port $@
18         $(MAKE) -C timezone $@
19         $(MAKE) -C backend $@
20         $(MAKE) -C backend/utils/mb/conversion_procs $@
21         $(MAKE) -C include $@
22         $(MAKE) -C interfaces $@
23         $(MAKE) -C bin $@
24         $(MAKE) -C pl $@
25         $(MAKE) -C makefiles $@
26         $(MAKE) -C utils $@
27         $(MAKE) -C test/regress $@
28
29 install: install-local
30
31 install-local: installdirs-local
32         $(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
33         $(INSTALL_DATA) Makefile.port '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.port'
34         $(INSTALL_DATA) $(srcdir)/Makefile.shlib '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.shlib'
35         $(INSTALL_DATA) $(srcdir)/nls-global.mk '$(DESTDIR)$(pgxsdir)/$(subdir)/nls-global.mk'
36
37 installdirs: installdirs-local
38
39 installdirs-local:
40         $(mkinstalldirs) '$(DESTDIR)$(pgxsdir)/$(subdir)'
41
42 uninstall: uninstall-local
43
44 uninstall-local:
45         rm -f $(addprefix '$(DESTDIR)$(pgxsdir)/$(subdir)'/, Makefile.global Makefile.port Makefile.shlib nls-global.mk)
46
47 clean:
48         $(MAKE) -C port $@
49         $(MAKE) -C timezone $@
50         $(MAKE) -C backend $@
51         $(MAKE) -C include $@
52         $(MAKE) -C interfaces $@
53         $(MAKE) -C bin $@
54         $(MAKE) -C pl $@
55         $(MAKE) -C makefiles $@
56         $(MAKE) -C test $@
57         $(MAKE) -C tutorial NO_PGXS=1 $@
58         $(MAKE) -C utils $@
59         $(MAKE) -C test/thread $@
60
61 distclean maintainer-clean:
62         -$(MAKE) -C port $@
63         -$(MAKE) -C timezone $@
64         -$(MAKE) -C backend $@
65         -$(MAKE) -C include $@
66         -$(MAKE) -C interfaces $@
67         -$(MAKE) -C bin $@
68         -$(MAKE) -C pl $@
69         -$(MAKE) -C makefiles $@
70         -$(MAKE) -C test $@
71         -$(MAKE) -C tutorial NO_PGXS=1 $@
72         -$(MAKE) -C utils $@
73         -$(MAKE) -C test/thread $@
74         rm -f Makefile.port Makefile.global
75
76
77 .PHONY: install-local installdirs-local uninstall-local