]> granicus.if.org Git - postgresql/blobdiff - GNUmakefile.in
Fix rounding problem in dynahash.c's decision about when the target
[postgresql] / GNUmakefile.in
index cbfc6c22f5299b86c5b3f29b4622989a077209ba..581628f77e916f3e9109c07f529fa2a50c8843c6 100644 (file)
@@ -1,7 +1,7 @@
 #
 # PostgreSQL top level makefile
 #
-# $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.21 2001/11/21 15:08:32 momjian Exp $
+# $PostgreSQL: pgsql/GNUmakefile.in,v 1.41 2004/10/06 08:49:58 momjian Exp $
 #
 
 subdir =
@@ -11,19 +11,19 @@ include $(top_builddir)/src/Makefile.global
 all:
        $(MAKE) -C doc all
        $(MAKE) -C src all
+       $(MAKE) -C config all
        @echo "All of PostgreSQL successfully made. Ready to install."
 
 install:
-       $(MAKE) -C doc install
-       $(MAKE) -C src install
-       @cat $(srcdir)/register.txt
-
-installdirs uninstall distprep:
        $(MAKE) -C doc $@
        $(MAKE) -C src $@
+       $(MAKE) -C config $@
+       @echo "PostgreSQL installation complete."
 
-install-all-headers:
+installdirs uninstall distprep:
+       $(MAKE) -C doc $@
        $(MAKE) -C src $@
+       $(MAKE) -C config $@
 
 # clean, distclean, etc should apply to contrib too, even though
 # it's not built by default
@@ -31,14 +31,20 @@ clean:
        $(MAKE) -C doc $@
        $(MAKE) -C contrib $@
        $(MAKE) -C src $@
+       $(MAKE) -C config $@
+# Garbage from autoconf:
+       @rm -rf autom4te.cache/
 
 # Important: distclean `src' last, otherwise Makefile.global
 # will be gone too soon.
 distclean maintainer-clean:
        -$(MAKE) -C doc $@
        -$(MAKE) -C contrib $@
+       -$(MAKE) -C config $@
        -$(MAKE) -C src $@
        -rm -f config.cache config.log config.status GNUmakefile
+# Garbage from autoconf:
+       @rm -rf autom4te.cache/
 
 check: all
 
@@ -46,7 +52,7 @@ check installcheck:
        $(MAKE) -C src/test $@
 
 GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
-       CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
+       ./config.status $@
 
 
 ##########################################################################
@@ -55,9 +61,9 @@ distdir       := postgresql-$(VERSION)
 dummy  := =install=
 garbage := =*  "#"*  ."#"*  *~*  *.orig  *.rej  core  postgresql-*
 
-dist: $(distdir).tar.gz
+dist: $(distdir).tar.gz 
 ifeq ($(split-dist), yes)
-dist: postgresql-base-$(VERSION).tar.gz postgresql-docs-$(VERSION).tar.gz postgresql-opt-$(VERSION).tar.gz postgresql-test-$(VERSION).tar.gz
+dist: postgresql-base-$(VERSION).tar.gz postgresql-docs-$(VERSION).tar.gz postgresql-opt-$(VERSION).tar.gz postgresql-test-$(VERSION).tar.gz 
 endif
 dist:
        -rm -rf $(distdir)
@@ -65,13 +71,11 @@ dist:
 $(distdir).tar: distdir
        $(TAR) chf $@ $(distdir)
 
-opt_files := src/backend/utils/mb contrib/retep/build.xml \
-       src/tools src/corba src/data src/tutorial \
-       $(addprefix src/bin/, pgaccess pgtclsh pg_encoding) \
-       $(addprefix src/interfaces/, odbc libpq++ libpgtcl perl5 python jdbc) \
-       $(addprefix src/pl/, plperl tcl)
+opt_files := \
+       src/tools src/corba src/tutorial \
+       $(addprefix src/pl/, plperl plpython tcl)
 
-docs_files := doc/src/postgres.tar.gz doc/src doc/TODO.detail doc/internals.ps
+docs_files := doc/postgres.tar.gz doc/src doc/TODO.detail
 
 postgresql-base-$(VERSION).tar: distdir
        $(TAR) -c $(addprefix --exclude $(distdir)/, $(docs_files) $(opt_files) src/test) \
@@ -99,6 +103,7 @@ distdir:
        done
        $(MAKE) -C $(distdir) distprep
        $(MAKE) -C $(distdir) distclean
+       rm -f $(distdir)/README.CVS
 
 distcheck: $(distdir).tar.gz
        -rm -rf $(dummy)