#
# PostgreSQL top level makefile
#
-# $Header: /cvsroot/pgsql/GNUmakefile.in,v 1.29 2002/09/06 21:57:11 petere Exp $
+# $PostgreSQL: pgsql/GNUmakefile.in,v 1.44 2006/04/06 18:54:36 petere Exp $
#
subdir =
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
+ $(MAKE) -C doc $@
+ $(MAKE) -C src $@
+ $(MAKE) -C config $@
+ @echo "PostgreSQL installation complete."
-installdirs uninstall distprep:
+installdirs uninstall:
$(MAKE) -C doc $@
$(MAKE) -C src $@
+ $(MAKE) -C config $@
-install-all-headers:
+distprep:
+ $(MAKE) -C doc $@
$(MAKE) -C src $@
+ $(MAKE) -C config $@
+ $(MAKE) -C contrib $@
# clean, distclean, etc should apply to contrib too, even though
# it's not built by default
$(MAKE) -C doc $@
$(MAKE) -C contrib $@
$(MAKE) -C src $@
+ $(MAKE) -C config $@
# Garbage from autoconf:
@rm -rf autom4te.cache/
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:
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)
$(distdir).tar: distdir
$(TAR) chf $@ $(distdir)
-opt_files := contrib/retep \
- src/tools src/corba src/data src/tutorial \
- src/bin/pgtclsh \
- $(addprefix src/interfaces/, libpgtcl python jdbc) \
+opt_files := \
+ src/tools src/tutorial \
$(addprefix src/pl/, plperl plpython tcl)
docs_files := doc/postgres.tar.gz doc/src doc/TODO.detail
fi || exit; \
done
$(MAKE) -C $(distdir) distprep
+ $(MAKE) -C $(distdir)/doc/src/sgml/ HISTORY INSTALL regress_README
+ cp $(distdir)/doc/src/sgml/HISTORY $(distdir)/
+ cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
+ cp $(distdir)/doc/src/sgml/regress_README $(distdir)/src/test/regress/README
$(MAKE) -C $(distdir) distclean
+ rm -f $(distdir)/README.CVS
distcheck: $(distdir).tar.gz
-rm -rf $(dummy)