]> granicus.if.org Git - postgresql/blob - src/Makefile
Postgres95 1.01 Distribution - Virgin Sources
[postgresql] / src / Makefile
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/Makefile,v 1.1.1.1 1996/07/09 06:21:07 scrappy Exp $
11 #
12 # NOTES
13 #       objdir  - location of the objects and generated files (eg. obj)
14 #
15 #-------------------------------------------------------------------------
16
17 SUBDIR= backend libpq bin
18
19 FIND = find
20 # assuming gnu tar and split here
21 TAR  = tar
22 SPLIT = split
23
24 ETAGS = etags
25 XARGS = xargs
26
27 ifeq ($(USE_TCL), true)
28 SUBDIR += libpgtcl
29 endif
30
31 include mk/postgres.subdir.mk
32
33 TAGS:
34         rm -f TAGS; \
35         for i in backend libpq bin; do \
36           $(FIND) $$i -name '*.[chyl]' -print | $(XARGS) $(ETAGS) -a ; \
37         done
38
39 # target to generate a backup tar file and split files that can be 
40 # saved to 1.44M floppy
41 BACKUP:
42         rm -f BACKUP.filelist BACKUP.tgz; \
43         $(FIND) . -not -path '*obj/*' -not -path '*data/*' -type f -print > BACKUP.filelist; \
44         $(TAR) --files-from BACKUP.filelist -c -z -v -f BACKUP.tgz
45         $(SPLIT) --bytes=1400k BACKUP.tgz pgBACKUP.     
46
47 .PHONY: TAGS
48 .PHONY: BACKUP