mirror of
https://github.com/postgres/postgres.git
synced 2025-12-01 12:18:01 +03:00
Catch all errors in for and while loops in makefiles. Don't ignore any
errors in any commands, including in various clean targets that have so far been handled inconsistently. make -i is available to ignore all errors in a consistent and official way.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
# Makefile for utils/mb/conversion_procs
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.18 2007/03/25 11:56:02 ishii Exp $
|
||||
# $PostgreSQL: pgsql/src/backend/utils/mb/conversion_procs/Makefile,v 1.19 2008/03/18 16:24:50 petere Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@@ -164,7 +164,8 @@ all: $(SQLSCRIPT)
|
||||
|
||||
$(SQLSCRIPT): Makefile
|
||||
ifeq ($(enable_shared), yes)
|
||||
@set $(CONVERSIONS) ; \
|
||||
@set -e; \
|
||||
set $(CONVERSIONS) ; \
|
||||
while [ "$$#" -gt 0 ] ; \
|
||||
do \
|
||||
name=$$1;shift; \
|
||||
@@ -182,7 +183,8 @@ else
|
||||
endif
|
||||
|
||||
$(REGRESSION_SCRIPT): Makefile
|
||||
@cp regress_prolog $@; \
|
||||
@set -e; \
|
||||
cp regress_prolog $@; \
|
||||
set $(CONVERSIONS) ; \
|
||||
while [ "$$#" -gt 0 ] ; \
|
||||
do \
|
||||
@@ -210,5 +212,5 @@ uninstall:
|
||||
|
||||
clean distclean maintainer-clean:
|
||||
rm -f $(SQLSCRIPT)
|
||||
@for dir in $(DIRS); do $(MAKE) -C $$dir $@; done
|
||||
@for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user