mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
ca5db6cab1
does 2 things: 1) Make it hard to not notice the make failed. (As you recall, someone on the mailing list had this problem. I've had it to some extent myself). The 1.02 make files continue with the next subdirectory when a make in a subdirectory fails. The patch makes the make stop in the conventional way when a submake fails. It also adds a reassuring message when the make succeeds and adds a note to the INSTALL file to expect it. 2) Include loader flags on all invocations of the linker. The 1.02 make files omit the $(LDFLAGS) on some of the linker invocations. On my system, I need one of those flags just to make it invoke the proper version of the compiler/linker, so LDFLAGS has to be everywhere. Submitted by: Bryan Henderson <bryanh@giraffe.netgate.net>
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile.inc--
|
|
# Build and install postgres.
|
|
#
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
#
|
|
# IDENTIFICATION
|
|
# $Header: /cvsroot/pgsql/src/Makefile,v 1.4 1996/08/13 07:47:43 scrappy Exp $
|
|
#
|
|
# NOTES
|
|
# objdir - location of the objects and generated files (eg. obj)
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
MKDIR=./mk
|
|
-include $(MKDIR)/../Makefile.global
|
|
|
|
FIND = find
|
|
# assuming gnu tar and split here
|
|
TAR = tar
|
|
SPLIT = split
|
|
|
|
ETAGS = etags
|
|
XARGS = xargs
|
|
|
|
.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.
|
|
|
|
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
|