This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Install failures are ignored


>>> "adl" == Alexandre Duret-Lutz <duret_g@lrde.epita.fr> writes:

[...]

 adl> What about adding something like the following on top of each
 adl> "for/do/done" rule?

 adl> set fnord $$MAKEFLAGS; amf=$$2; \
 adl> case "$$amf" in *=*) set -e ;; *k*) ;; *) set -e ;; esac; \

 adl> The idea is to force `set -e' unless `make -k' is used.
 adl> This would free us from all these `|| exit 1'.

Maybe nicer:

am__FOR = set fnord $$MAKEFLAGS && amf=$$2 && \
          case "$$amf" in *=*) set -e ;; *k*) ;; *) set -e ;; esac && for

and use `$(am__FOR)' instead of `for' in the Makefiles.
-- 
Alexandre Duret-Lutz




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]