From e3c5559332e55ac4c938b7de663ed29d2a460df8 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Tue, 23 Dec 2014 01:44:08 +0100 Subject: [PATCH] make flags analysis: fix bug in $(MFLAGS) parsing (typo-induced) * header-vars.mk (am.make.is-running-with-option): Here. This change fixes the failures in test 'make-dryrun.tap' (exposed by previous commit v1.13.1d-928-g723f6d9), and also fixes a long-standing failure of the test 'remake-gnulib-add-acsubst.sh'. Yay! Signed-off-by: Stefano Lattarini --- lib/am/header-vars.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/am/header-vars.mk b/lib/am/header-vars.mk index 37f0c871e..4cea4aa27 100644 --- a/lib/am/header-vars.mk +++ b/lib/am/header-vars.mk @@ -168,10 +168,10 @@ DESTDIR ?= # implementation. It is worthwhile to note that, when expanded # from the top-level make, $(MFLAGS) doesn't contain references to # options that take an argument, either mandatory (e.g., '-I') or -# optional (e.g., '-O'). This *vastly* semplifies the implementation +# optional (e.g., '-O'). This *vastly* simplifies the implementation # of this macro. am.make.is-running-with-option = \ - $(if $(findstring $(strip $1),filter-out --%,$(MFLAGS)),true,false) + $(if $(findstring $(strip $1),$(filter-out --%,$(MFLAGS))),true,false) # Tell whether make is running in "dry mode". am.make.dry-run := $(call am.make.is-running-with-option, n) -- 2.47.2