1 #-------------------------------------------------------------------------
4 # Build and install postgres.
6 # Copyright (c) 1994, Regents of the University of California
10 # $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.47 2000/01/09 07:53:52 tgl Exp $
12 #-------------------------------------------------------------------------
15 include Makefile.global
19 # assuming gnu tar and split here
29 $(MAKE) -C backend all
30 $(MAKE) -C interfaces all
33 @if test $@. = all. -o $@. = .; then \
34 echo All of PostgreSQL is successfully made. Ready to install. ;\
39 $(MAKE) -C utils install
40 $(MAKE) -C backend install
41 $(MAKE) -C interfaces install
42 $(MAKE) -C bin install
47 $(MAKE) -C lextest all
48 @if test ! -f lextest/lextest; then \
50 echo "You have a buggy version of flex. Read INSTALL and search for flex for a fix.";\
58 $(MAKE) -C lextest clean
59 $(MAKE) -C utils clean
60 $(MAKE) -C backend clean
61 $(MAKE) -C interfaces clean
65 $(MAKE) -C ../contrib/spi clean
68 # Remove files and symlinks created by configure script
78 backend/port/dynloader.c \
79 backend/utils/Gen_fmgrtab.sh \
80 interfaces/odbc/port \
81 interfaces/odbc/makefiles \
82 interfaces/odbc/template \
83 interfaces/odbc/config.h \
89 backend/port/Makefile \
90 backend/catalog/genbki.sh \
91 backend/utils/Gen_fmgrtab.sh \
92 bin/pg_dump/Makefile \
93 bin/pg_version/Makefile \
95 bin/pgtclsh/mkMakefile.tcldefs.sh \
96 bin/pgtclsh/mkMakefile.tkdefs.sh \
98 interfaces/libpq/Makefile \
99 interfaces/ecpg/lib/Makefile \
100 interfaces/libpq++/Makefile \
101 interfaces/libpgeasy/Makefile \
102 interfaces/libpgtcl/Makefile \
103 interfaces/odbc/GNUmakefile \
104 interfaces/odbc/Makefile.global \
105 pl/plpgsql/src/Makefile \
106 pl/plpgsql/src/mklang.sql \
107 pl/tcl/mkMakefile.tcldefs.sh \
108 test/regress/GNUmakefile
111 $(MAKE) -C lextest $@
113 $(MAKE) -C backend $@
114 $(MAKE) -C interfaces $@
117 @if test $@. = all. -o $@. = .; then \
118 echo All of PostgreSQL is successfully made. Ready to install. ;\
123 for i in backend interfaces/libpq bin; do \
124 $(FIND) $$i -name '*.[chyl]' -print | $(XARGS) $(ETAGS) -a ; \
127 # target to generate a backup tar file and split files that can be
128 # saved to 1.44M floppy
130 rm -f BACKUP.filelist BACKUP.tgz; \
131 $(FIND) . -not -path '*obj/*' -not -path '*data/*' -type f -print > BACKUP.filelist; \
132 $(TAR) --files-from BACKUP.filelist -c -z -v -f BACKUP.tgz
133 $(SPLIT) --bytes=1400k BACKUP.tgz pgBACKUP.