1 #-------------------------------------------------------------------------
4 # Build and install postgres.
6 # Copyright (c) 1994, Regents of the University of California
10 # $Header: /cvsroot/pgsql/src/Makefile,v 1.7 1996/10/07 23:53:47 scrappy Exp $
13 # objdir - location of the objects and generated files (eg. obj)
15 #-------------------------------------------------------------------------
18 -include $(MKDIR)/../Makefile.global
21 # assuming gnu tar and split here
31 ifeq ($(USE_TCL), true)
32 $(MAKE) -C libpgtcl $@
35 ifneq ($(wildcard $(MKDIR)/../../doc), )
38 @-chown -R $(POSTGRESLOGIN) $(POSTGRESDIR) 2>/dev/null
39 @if test $@. = all. -o $@. = .; then \
40 echo All of Postgres95 is successfully made. Ready to install. ;\
45 for i in backend libpq bin; do \
46 $(FIND) $$i -name '*.[chyl]' -print | $(XARGS) $(ETAGS) -a ; \
49 # target to generate a backup tar file and split files that can be
50 # saved to 1.44M floppy
52 rm -f BACKUP.filelist BACKUP.tgz; \
53 $(FIND) . -not -path '*obj/*' -not -path '*data/*' -type f -print > BACKUP.filelist; \
54 $(TAR) --files-from BACKUP.filelist -c -z -v -f BACKUP.tgz
55 $(SPLIT) --bytes=1400k BACKUP.tgz pgBACKUP.