From 8c87cc370f427515b4aa9b03e64a8878de4b6a22 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 18 Mar 2008 16:24:50 +0000 Subject: 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. --- src/pl/Makefile | 9 +++------ src/pl/plpgsql/Makefile | 7 ++----- 2 files changed, 5 insertions(+), 11 deletions(-) (limited to 'src/pl') diff --git a/src/pl/Makefile b/src/pl/Makefile index 4a0f365472..fa06459a9b 100644 --- a/src/pl/Makefile +++ b/src/pl/Makefile @@ -4,7 +4,7 @@ # # Copyright (c) 1994, Regents of the University of California # -# $PostgreSQL: pgsql/src/pl/Makefile,v 1.26 2007/06/01 19:38:07 tgl Exp $ +# $PostgreSQL: pgsql/src/pl/Makefile,v 1.27 2008/03/18 16:24:50 petere Exp $ # #------------------------------------------------------------------------- @@ -26,11 +26,8 @@ ifeq ($(with_tcl), yes) DIRS += tcl endif -all install installdirs uninstall distprep: - @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit 1; done - -clean distclean maintainer-clean: - @for dir in $(DIRS); do $(MAKE) -C $$dir $@; done +all install installdirs uninstall distprep clean distclean maintainer-clean: + @for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done # We'd like check operations to run all the subtests before failing. check installcheck: diff --git a/src/pl/plpgsql/Makefile b/src/pl/plpgsql/Makefile index 118636cae3..2f1298c258 100644 --- a/src/pl/plpgsql/Makefile +++ b/src/pl/plpgsql/Makefile @@ -4,7 +4,7 @@ # # Copyright (c) 1994, Regents of the University of California # -# $PostgreSQL: pgsql/src/pl/plpgsql/Makefile,v 1.8 2003/11/29 19:52:12 pgsql Exp $ +# $PostgreSQL: pgsql/src/pl/plpgsql/Makefile,v 1.9 2008/03/18 16:24:50 petere Exp $ # #------------------------------------------------------------------------- @@ -12,8 +12,5 @@ subdir = src/pl/plpgsql top_builddir = ../../.. include $(top_builddir)/src/Makefile.global -all install installdirs uninstall distprep: +all install installdirs uninstall distprep clean distclean maintainer-clean: $(MAKE) -C src $@ - -clean distclean maintainer-clean: - -$(MAKE) -C src $@ -- cgit v1.2.1