1997-02-04 09:53:45 +01:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
#
|
|
|
|
# Makefile.inc--
|
|
|
|
# Build and install postgres.
|
|
|
|
#
|
|
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# IDENTIFICATION
|
1999-07-01 02:06:28 +02:00
|
|
|
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.42 1999/07/01 00:06:28 tgl 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:
|
1998-10-07 08:38:29 +02:00
|
|
|
$(MAKE) lexverify
|
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
|
1998-09-29 14:43:05 +02:00
|
|
|
$(MAKE) -C pl all
|
1997-02-19 15:14:40 +01:00
|
|
|
@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:
|
1998-10-07 08:38:29 +02:00
|
|
|
$(MAKE) lexverify
|
1997-10-02 02:59:35 +02:00
|
|
|
$(MAKE) -C utils install
|
|
|
|
$(MAKE) -C backend install
|
1998-10-07 08:38:29 +02:00
|
|
|
$(MAKE) -C interfaces install
|
1997-10-02 02:59:35 +02:00
|
|
|
$(MAKE) -C bin install
|
1998-09-29 14:43:05 +02:00
|
|
|
$(MAKE) -C pl install
|
1997-11-07 07:22:36 +01:00
|
|
|
cat ../register.txt
|
1997-10-02 02:59:35 +02:00
|
|
|
|
1998-10-09 09:01:26 +02:00
|
|
|
install-man:
|
|
|
|
$(MAKE) -C man install
|
|
|
|
|
1998-10-07 08:38:29 +02:00
|
|
|
lexverify:
|
|
|
|
$(MAKE) -C lextest all
|
|
|
|
@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:03:28 +01:00
|
|
|
clean:
|
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
|
1998-09-29 14:43:05 +02:00
|
|
|
$(MAKE) -C pl clean
|
1998-01-13 05:43:22 +01:00
|
|
|
$(MAKE) -C test clean
|
1998-01-18 00:39:35 +01:00
|
|
|
$(MAKE) -C ../contrib/spi clean
|
1997-02-28 19:34:58 +01:00
|
|
|
|
|
|
|
distclean: clean
|
1999-07-01 02:06:28 +02:00
|
|
|
# Remove files and symlinks created by configure script
|
1998-10-17 05:48:54 +02:00
|
|
|
rm -f \
|
|
|
|
Makefile.port \
|
1997-02-28 19:45:17 +01:00
|
|
|
config.cache \
|
|
|
|
config.status \
|
|
|
|
config.log \
|
|
|
|
include/config.h \
|
1998-01-18 00:39:35 +01:00
|
|
|
include/dynloader.h \
|
1998-08-30 05:34:05 +02:00
|
|
|
include/os.h \
|
1998-01-18 00:39:35 +01:00
|
|
|
backend/port/tas.s \
|
|
|
|
backend/port/dynloader.c \
|
1997-04-09 10:29:35 +02:00
|
|
|
backend/utils/Gen_fmgrtab.sh \
|
1999-07-01 02:06:28 +02:00
|
|
|
interfaces/odbc/port \
|
|
|
|
interfaces/odbc/makefiles \
|
|
|
|
interfaces/odbc/template \
|
|
|
|
interfaces/odbc/config.h \
|
1998-10-17 04:36:13 +02:00
|
|
|
\
|
|
|
|
\
|
|
|
|
\
|
|
|
|
GNUmakefile \
|
|
|
|
Makefile.global \
|
|
|
|
backend/port/Makefile \
|
|
|
|
backend/catalog/genbki.sh \
|
|
|
|
backend/utils/Gen_fmgrtab.sh \
|
|
|
|
bin/pg_dump/Makefile \
|
|
|
|
bin/pg_version/Makefile \
|
|
|
|
bin/psql/Makefile \
|
|
|
|
bin/pgtclsh/mkMakefile.tcldefs.sh \
|
|
|
|
bin/pgtclsh/mkMakefile.tkdefs.sh \
|
|
|
|
include/version.h \
|
1998-01-13 05:43:22 +01:00
|
|
|
interfaces/libpq/Makefile \
|
1998-10-17 04:36:13 +02:00
|
|
|
interfaces/ecpg/lib/Makefile \
|
1998-09-11 19:08:22 +02:00
|
|
|
interfaces/libpq++/Makefile \
|
1998-01-13 05:43:22 +01:00
|
|
|
interfaces/libpgtcl/Makefile \
|
1998-10-09 06:07:49 +02:00
|
|
|
interfaces/odbc/GNUmakefile \
|
1998-10-17 04:36:13 +02:00
|
|
|
interfaces/odbc/Makefile.global \
|
1998-10-09 06:07:49 +02:00
|
|
|
pl/plpgsql/src/Makefile \
|
1998-10-12 07:07:53 +02:00
|
|
|
pl/plpgsql/src/mklang.sql \
|
1998-10-17 04:36:13 +02:00
|
|
|
pl/tcl/mkMakefile.tcldefs.sh
|
1997-02-19 15:03:28 +01:00
|
|
|
|
1997-02-28 16:35:50 +01:00
|
|
|
.DEFAULT:
|
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 $@
|
1998-09-29 14:43:05 +02:00
|
|
|
$(MAKE) -C pl $@
|
1997-02-04 09:53:45 +01:00
|
|
|
@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
|
|
|
|