On Wed, 2014-04-30 at 18:19 +0200, Guillem Jover wrote:
> build-stamp:
>         echo $@
> 
> build-arch: build-stamp

> $ make --version | head -n1
> GNU Make 4.0
> $ make -f detect.mk -qn build-arch; echo $?
> 2

This is definitely a bug in GNU make 4.0 in handling -q (note the -n is
not relevant: you can leave it out and get the same behavior).  The docs
are clear on what the exit codes should be, and with -q make should exit
with 1 if something needs to be updated and no error was detected.



_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to