1997-02-04 09:53:45 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile.inc--
|
|
|
|
# Build and install postgres.
|
|
|
|
#
|
|
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# IDENTIFICATION
|
1997-10-30 05:46:45 +01:00
|
|
|
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.18 1997/10/30 04:46:37 momjian Exp $
|
1997-02-04 09:53:45 +01:00
|
|
|
#
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
SRCDIR= .
|
|
|
|
include Makefile.global
|
|
|
|
|
|
|
|
FIND = @find@
|
|
|
|
|
|
|
|
# assuming gnu tar and split here
|
|
|
|
TAR = @tar@
|
|
|
|
SPLIT = @split@
|
|
|
|
|
|
|
|
ETAGS = @etags@
|
|
|
|
XARGS = @xargs@
|
|
|
|
|
1997-02-19 15:14:40 +01:00
|
|
|
all:
|
|
|
|
@if test $(PORTNAME) = UNDEFINED; then \
|
|
|
|
echo You must set the PORTNAME value in Makefile.global before \
|
|
|
|
you can build Postgres. ;\
|
|
|
|
false ;\
|
|
|
|
else true;\
|
|
|
|
fi
|
1997-05-14 05:32:40 +02:00
|
|
|
$(MAKE) -C lextest all
|
1997-05-16 04:00:03 +02:00
|
|
|
@if test ! -f lextest/lextest; then \
|
|
|
|
echo "";\
|
|
|
|
echo "You have a buggy version of flex. Read INSTALL and search for flex for a fix.";\
|
|
|
|
echo "";\
|
|
|
|
false;\
|
|
|
|
else \
|
|
|
|
true;\
|
|
|
|
fi
|
1997-02-19 15:14:40 +01:00
|
|
|
$(MAKE) -C utils all
|
|
|
|
$(MAKE) -C backend all
|
1997-08-16 22:56:28 +02:00
|
|
|
$(MAKE) -C interfaces all
|
1997-02-19 15:14:40 +01:00
|
|
|
$(MAKE) -C bin all
|
|
|
|
ifneq ($(wildcard man), )
|
|
|
|
$(MAKE) -C man all
|
|
|
|
endif
|
|
|
|
@if test $@. = all. -o $@. = .; then \
|
|
|
|
echo All of PostgreSQL is successfully made. Ready to install. ;\
|
|
|
|
fi
|
|
|
|
|
1997-10-02 02:59:35 +02:00
|
|
|
install:
|
|
|
|
@if test $(PORTNAME) = UNDEFINED; then \
|
|
|
|
echo You must set the PORTNAME value in Makefile.global before \
|
|
|
|
you can build Postgres. ;\
|
|
|
|
false ;\
|
|
|
|
else true;\
|
|
|
|
fi
|
|
|
|
$(MAKE) -C lextest install
|
|
|
|
$(MAKE) -C utils install
|
|
|
|
$(MAKE) -C backend install
|
|
|
|
$(MAKE) -C interfaces install
|
|
|
|
$(MAKE) -C bin install
|
|
|
|
ifneq ($(wildcard man), )
|
|
|
|
$(MAKE) -C man install
|
|
|
|
endif
|
1997-10-30 05:46:45 +01:00
|
|
|
more ../register.txt
|
1997-10-02 02:59:35 +02:00
|
|
|
|
1997-02-19 15:03:28 +01:00
|
|
|
clean:
|
|
|
|
@if test $(PORTNAME) = UNDEFINED; then \
|
|
|
|
echo You must set the PORTNAME value in Makefile.global before \
|
|
|
|
you can build Postgres. ;\
|
|
|
|
false ;\
|
|
|
|
else true;\
|
|
|
|
fi
|
1997-05-14 06:46:47 +02:00
|
|
|
$(MAKE) -C lextest clean
|
1997-02-19 15:03:28 +01:00
|
|
|
$(MAKE) -C utils clean
|
|
|
|
$(MAKE) -C backend clean
|
1997-08-16 22:56:28 +02:00
|
|
|
$(MAKE) -C interfaces clean
|
1997-02-19 15:03:28 +01:00
|
|
|
$(MAKE) -C bin clean
|
|
|
|
ifneq ($(wildcard man), )
|
|
|
|
$(MAKE) -C man clean
|
|
|
|
endif
|
1997-02-28 19:34:58 +01:00
|
|
|
|
|
|
|
distclean: clean
|
1997-02-28 19:45:17 +01:00
|
|
|
rm -f Makefile.global \
|
|
|
|
config.cache \
|
|
|
|
config.status \
|
|
|
|
config.log \
|
|
|
|
GNUmakefile \
|
|
|
|
Makefile.global \
|
|
|
|
backend/port/Makefile \
|
|
|
|
bin/psql/Makefile \
|
|
|
|
bin/pg_dump/Makefile \
|
|
|
|
include/config.h \
|
1997-04-09 10:29:35 +02:00
|
|
|
backend/utils/Gen_fmgrtab.sh \
|
1997-04-15 20:18:45 +02:00
|
|
|
include/os.h \
|
|
|
|
Makefile.port
|
1997-02-28 19:45:17 +01:00
|
|
|
|
1997-02-19 15:03:28 +01:00
|
|
|
|
1997-02-28 16:35:50 +01:00
|
|
|
.DEFAULT:
|
1997-02-04 09:53:45 +01:00
|
|
|
@if test $(PORTNAME) = UNDEFINED; then \
|
|
|
|
echo You must set the PORTNAME value in Makefile.global before \
|
|
|
|
you can build Postgres. ;\
|
|
|
|
false ;\
|
|
|
|
else true;\
|
|
|
|
fi
|
1997-05-14 06:46:47 +02:00
|
|
|
$(MAKE) -C lextest $@
|
1997-02-04 09:53:45 +01:00
|
|
|
$(MAKE) -C utils $@
|
|
|
|
$(MAKE) -C backend $@
|
1997-08-16 22:56:28 +02:00
|
|
|
$(MAKE) -C interfaces $@
|
1997-02-04 09:53:45 +01:00
|
|
|
$(MAKE) -C bin $@
|
|
|
|
ifneq ($(wildcard man), )
|
|
|
|
$(MAKE) -C man $@
|
|
|
|
endif
|
|
|
|
@if test $@. = all. -o $@. = .; then \
|
1997-02-04 10:13:59 +01:00
|
|
|
echo All of PostgreSQL is successfully made. Ready to install. ;\
|
1997-02-04 09:53:45 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
TAGS:
|
|
|
|
rm -f TAGS; \
|
1997-08-16 22:56:28 +02:00
|
|
|
for i in backend interfaces/libpq bin; do \
|
1997-02-04 09:53:45 +01:00
|
|
|
$(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
|
1997-02-19 15:03:28 +01:00
|
|
|
|