diff options
Diffstat (limited to 'src/GNUmakefile')
-rw-r--r-- | src/GNUmakefile | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile new file mode 100644 index 00000000000..8f655dd1383 --- /dev/null +++ b/src/GNUmakefile @@ -0,0 +1,62 @@ +#------------------------------------------------------------------------- +# +# Makefile.inc-- +# Build and install postgres. +# +# Copyright (c) 1994, Regents of the University of California +# +# IDENTIFICATION +# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile,v 1.1 1996/12/31 07:26:26 bryanh Exp $ +# +#------------------------------------------------------------------------- + +SRCDIR= . +include Makefile.global + +FIND = find +# assuming gnu tar and split here +TAR = tar +SPLIT = split + +ETAGS = etags +XARGS = xargs + +.DEFAULT all: + @if test $(PORTNAME) = UNDEFINED; then \ + echo You must set the PORTNAME value in Makefile.global before \ + you can build Postgres. ;\ + false ;\ + fi + $(MAKE) -C utils $@ + $(MAKE) -C backend $@ + $(MAKE) -C libpq $@ +ifeq ($(HAVE_Cplusplus), true) + $(MAKE) -C libpq++ $@ +endif +ifeq ($(USE_TCL), true) + $(MAKE) -C libpgtcl $@ +endif + $(MAKE) -C bin $@ +ifneq ($(wildcard man), ) + $(MAKE) -C man $@ +endif + @if test $@. = all. -o $@. = .; then \ + echo All of Postgres95 is successfully made. Ready to install. ;\ + fi + +TAGS: + rm -f TAGS; \ + for i in backend libpq bin; do \ + $(FIND) $$i -name '*.[chyl]' -print | $(XARGS) $(ETAGS) -a ; \ + done + +# target to generate a backup tar file and split files that can be +# saved to 1.44M floppy +BACKUP: + rm -f BACKUP.filelist BACKUP.tgz; \ + $(FIND) . -not -path '*obj/*' -not -path '*data/*' -type f -print > BACKUP.filelist; \ + $(TAR) --files-from BACKUP.filelist -c -z -v -f BACKUP.tgz + $(SPLIT) --bytes=1400k BACKUP.tgz pgBACKUP. + +.PHONY: TAGS +.PHONY: BACKUP |