1996-07-09 08:22:35 +02:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile.inc--
|
|
|
|
# Build and install postgres.
|
|
|
|
#
|
|
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# IDENTIFICATION
|
1996-08-13 09:48:33 +02:00
|
|
|
# $Header: /cvsroot/pgsql/src/Makefile,v 1.4 1996/08/13 07:47:43 scrappy Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
#
|
|
|
|
# NOTES
|
|
|
|
# objdir - location of the objects and generated files (eg. obj)
|
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
1996-08-01 21:46:46 +02:00
|
|
|
MKDIR=./mk
|
|
|
|
-include $(MKDIR)/../Makefile.global
|
|
|
|
|
1996-07-09 08:22:35 +02:00
|
|
|
FIND = find
|
|
|
|
# assuming gnu tar and split here
|
|
|
|
TAR = tar
|
|
|
|
SPLIT = split
|
|
|
|
|
|
|
|
ETAGS = etags
|
|
|
|
XARGS = xargs
|
|
|
|
|
1996-08-13 09:48:33 +02:00
|
|
|
.DEFAULT all:
|
|
|
|
$(MAKE) -C backend $@
|
|
|
|
$(MAKE) -C libpq $@
|
|
|
|
ifeq ($(USE_TCL), true)
|
|
|
|
$(MAKE) -C libpgtcl $@
|
|
|
|
endif
|
|
|
|
$(MAKE) -C bin $@
|
|
|
|
$(MAKE) -C ../doc $@
|
|
|
|
@echo All of Postgres95 is successfully made. Ready to install.
|
1996-07-09 08:22:35 +02:00
|
|
|
|
|
|
|
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
|