dry-run: with GNU make, prefer $(MFLAGS) over $(MAKEFLAGS)
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 22 Apr 2013 13:07:43 +0000 (15:07 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 22 Apr 2013 16:01:48 +0000 (18:01 +0200)
commit334a2e0b46c3d17ffb24f415cbec2e13e48b6c94
treeb6b05062e1f3a39ed5b53c840e9da5050680f20f
parent3de27839c88bda6c755f00c7142620080b725be0
dry-run: with GNU make, prefer $(MFLAGS) over $(MAKEFLAGS)

Fixes automake bug#13760 for GNU make.

* lib/am/header-vars.am (am__make_dryrun): If GNU make is being used, rely
on the contents of the $(MFLAGS) variable rather than of the $(MAKEFLAGS)
to decide whther make is being executed in "dry run" mode.  Not only this
makes the code possibly faster and less brittle, but also fixes automake
bug#13760 (at least when GNU make is in use).
* t/make-dryrun.tap: Adjust: some tests that were xfailing now pass.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/header-vars.am
t/make-dryrun.tap