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-12-19 09:03:46 +01:00
|
|
|
# $Header: /cvsroot/pgsql/src/Makefile,v 1.14 1996/12/19 08:03:46 bryanh Exp $
|
1996-07-09 08:22:35 +02:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
1996-11-13 11:36:36 +01:00
|
|
|
SRCDIR= .
|
|
|
|
include Makefile.global
|
1996-08-01 21:46:46 +02:00
|
|
|
|
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:
|
1996-12-19 09:03:46 +01:00
|
|
|
@set - `$(MAKE) -v -f /dev/null 2>&1`.; \
|
|
|
|
if test $$1 != GNU; then \
|
|
|
|
echo "This Makefile requires GNU make."; \
|
|
|
|
echo "Please read the file INSTALL in this directory for details."; \
|
|
|
|
false ; \
|
|
|
|
fi
|
1996-10-21 08:56:57 +02:00
|
|
|
@if test $(PORTNAME) = UNDEFINED; then \
|
|
|
|
echo You must set the PORTNAME value in Makefile.global before \
|
|
|
|
you can build Postgres. ;\
|
|
|
|
false ;\
|
|
|
|
fi
|
1996-11-11 14:51:57 +01:00
|
|
|
$(MAKE) -C utils $@
|
1996-08-13 09:48:33 +02:00
|
|
|
$(MAKE) -C backend $@
|
|
|
|
$(MAKE) -C libpq $@
|
1996-10-19 08:33:55 +02:00
|
|
|
ifeq ($(HAVE_Cplusplus), true)
|
|
|
|
$(MAKE) -C libpq++ $@
|
|
|
|
endif
|
1996-08-13 09:48:33 +02:00
|
|
|
ifeq ($(USE_TCL), true)
|
|
|
|
$(MAKE) -C libpgtcl $@
|
|
|
|
endif
|
|
|
|
$(MAKE) -C bin $@
|
1996-11-19 03:43:46 +01:00
|
|
|
ifneq ($(wildcard man), )
|
|
|
|
$(MAKE) -C man $@
|
1996-10-08 01:53:47 +02:00
|
|
|
endif
|
1996-10-04 22:07:10 +02:00
|
|
|
@if test $@. = all. -o $@. = .; then \
|
|
|
|
echo All of Postgres95 is successfully made. Ready to install. ;\
|
|
|
|
fi
|
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
|