OSDN Git Service

Makefile cleanup for interface tree. Now essentially with all the
[pg-rex/syncrep.git] / GNUmakefile.in
1 #
2 # PostgreSQL top level makefile
3 #
4 # $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.6 2000/06/28 18:29:11 petere Exp $
5 #
6
7 subdir =
8 top_builddir = .
9 include src/Makefile.global
10
11 all:
12         $(MAKE) -C src all
13         @echo "All of PostgreSQL successfully made. Ready to install."
14
15 install:
16         $(MAKE) -C src install
17         @cat $(srcdir)/register.txt
18
19 installdirs uninstall:
20         $(MAKE) -C src $@
21
22 clean:
23         $(MAKE) -C src clean
24
25 distclean maintainer-clean:
26         -$(MAKE) -C src $@
27         -rm -f config.cache config.log config.status GNUmakefile
28
29
30 GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
31         CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
32
33 $(top_builddir)/config.status: $(top_srcdir)/configure
34         cd $(top_builddir) && ./config.status --recheck
35
36
37 # These dependencies are risky because both the target and the sources
38 # are in CVS and CVS doesn't preserve timestamps, thus leading to
39 # unnecessary reruns of these rules.
40
41 AUTOCONF = autoconf
42
43 # Only use this rule if you actually said `make configure'.
44 ifeq ($(MAKECMDGOALS),configure)
45 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4
46         cd $(top_srcdir) && $(AUTOCONF)
47 endif
48
49 # This one we can leave unprotected because by default nothing depends
50 # on aclocal.m4. This rule is only invoked if you say `make
51 # aclocal.m4' or `make configure'.
52 $(top_srcdir)/aclocal.m4: $(wildcard $(top_srcdir)/config/*.m4)
53         cat $^ > $@