1 #-------------------------------------------------------------------------
4 # Build and install postgres.
6 # Copyright (c) 1994, Regents of the University of California
9 # $Header: /cvsroot/pgsql/src/Makefile,v 1.14 1996/12/19 08:03:46 bryanh Exp $
11 #-------------------------------------------------------------------------
14 include Makefile.global
17 # assuming gnu tar and split here
25 @set - `$(MAKE) -v -f /dev/null 2>&1`.; \
26 if test $$1 != GNU; then \
27 echo "This Makefile requires GNU make."; \
28 echo "Please read the file INSTALL in this directory for details."; \
31 @if test $(PORTNAME) = UNDEFINED; then \
32 echo You must set the PORTNAME value in Makefile.global before \
33 you can build Postgres. ;\
39 ifeq ($(HAVE_Cplusplus), true)
42 ifeq ($(USE_TCL), true)
43 $(MAKE) -C libpgtcl $@
46 ifneq ($(wildcard man), )
49 @if test $@. = all. -o $@. = .; then \
50 echo All of Postgres95 is successfully made. Ready to install. ;\
55 for i in backend libpq bin; do \
56 $(FIND) $$i -name '*.[chyl]' -print | $(XARGS) $(ETAGS) -a ; \
59 # target to generate a backup tar file and split files that can be
60 # saved to 1.44M floppy
62 rm -f BACKUP.filelist BACKUP.tgz; \
63 $(FIND) . -not -path '*obj/*' -not -path '*data/*' -type f -print > BACKUP.filelist; \
64 $(TAR) --files-from BACKUP.filelist -c -z -v -f BACKUP.tgz
65 $(SPLIT) --bytes=1400k BACKUP.tgz pgBACKUP.