blob: 49b6ba4adc21958fd7a142f61c204d5f6feada26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#-------------------------------------------------------------------------
#
# Makefile.inc--
# Build and install postgres.
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/Makefile,v 1.2 1996/07/20 07:52:36 scrappy Exp $
#
# NOTES
# objdir - location of the objects and generated files (eg. obj)
#
#-------------------------------------------------------------------------
SUBDIR= backend libpq bin ../doc
FIND = find
# assuming gnu tar and split here
TAR = tar
SPLIT = split
ETAGS = etags
XARGS = xargs
ifeq ($(USE_TCL), true)
SUBDIR += libpgtcl
endif
include mk/postgres.subdir.mk
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
|