|
| 1 | +#------------------------------------------------------------------------- |
| 2 | +# |
| 3 | +# Makefile.inc-- |
| 4 | +# Build and install postgres. |
| 5 | +# |
| 6 | +# Copyright (c) 1994, Regents of the University of California |
| 7 | +# |
| 8 | +# |
| 9 | +# IDENTIFICATION |
| 10 | +# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.4 1997/02/04 08:53:45 scrappy Exp $ |
| 11 | +# |
| 12 | +#------------------------------------------------------------------------- |
| 13 | + |
| 14 | +SRCDIR= . |
| 15 | +include Makefile.global |
| 16 | + |
| 17 | +FIND = @find@ |
| 18 | + |
| 19 | +# assuming gnu tar and split here |
| 20 | +TAR = @tar@ |
| 21 | +SPLIT = @split@ |
| 22 | + |
| 23 | +ETAGS = @etags@ |
| 24 | +XARGS = @xargs@ |
| 25 | + |
| 26 | +.DEFAULT all: |
| 27 | +@if test $(PORTNAME) = UNDEFINED; then \ |
| 28 | + echo You must set the PORTNAME value in Makefile.global before \ |
| 29 | + you can build Postgres. ;\ |
| 30 | + false ;\ |
| 31 | + else true;\ |
| 32 | +fi |
| 33 | +$(MAKE) -C utils $@ |
| 34 | +$(MAKE) -C backend $@ |
| 35 | +$(MAKE) -C libpq $@ |
| 36 | +ifeq ($(HAVE_Cplusplus), true) |
| 37 | +$(MAKE) -C libpq++ $@ |
| 38 | +endif |
| 39 | +ifeq ($(USE_TCL), true) |
| 40 | +$(MAKE) -C libpgtcl $@ |
| 41 | +endif |
| 42 | +$(MAKE) -C bin $@ |
| 43 | +ifneq ($(wildcard man), ) |
| 44 | +$(MAKE) -C man $@ |
| 45 | +endif |
| 46 | +@if test $@. = all. -o $@. = .; then \ |
| 47 | +echo All of Postgres95 is successfully made. Ready to install. ;\ |
| 48 | + fi |
| 49 | + |
| 50 | +TAGS: |
| 51 | +rm -f TAGS; \ |
| 52 | +for i in backend libpq bin; do \ |
| 53 | + $(FIND) $$i -name '*.[chyl]' -print | $(XARGS) $(ETAGS) -a ; \ |
| 54 | +done |
| 55 | + |
| 56 | +# target to generate a backup tar file and split files that can be |
| 57 | +# saved to 1.44M floppy |
| 58 | +BACKUP: |
| 59 | +rm -f BACKUP.filelist BACKUP.tgz; \ |
| 60 | +$(FIND) . -not -path '*obj/*' -not -path '*data/*' -type f -print > BACKUP.filelist; \ |
| 61 | +$(TAR) --files-from BACKUP.filelist -c -z -v -f BACKUP.tgz |
| 62 | +$(SPLIT) --bytes=1400k BACKUP.tgz pgBACKUP. |
| 63 | + |
| 64 | +.PHONY: TAGS |
| 65 | +.PHONY: BACKUP |