refactor: new variable telling whether make is running in "dry mode"
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 23 Jan 2012 20:02:05 +0000 (21:02 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 5 Feb 2012 17:04:59 +0000 (18:04 +0100)
commitda0964eb751461516bda1a38b8423cb412b601d6
treee2a0fab5f0a4130f7710724deaa35c95b38ce5cf
parentd51da57f66d5ad66d1edfe3898baa0bef625f4e1
refactor: new variable telling whether make is running in "dry mode"

We define a new variable '$(am__make_dryrun)', that can be used
in recipes to determine whether make is running in "dry mode" (as
with "make -n") or not.  This is useful in rules that invoke make
recursively, and are thus executed also with "make -n" -- either
because they are declared as dependencies to '.MAKE' (NetBSD make)
or because their recipes contain the "$(MAKE)" string (GNU and
Solaris make).

* lib/am/header-vars.am (am__make_dryrun): New variable.
* lib/am/check.am (check-TESTS recheck): Use it, and simplify
recipe accordingly.
* lib/am/distdir.am (distdir): Likewise.
* lib/am/lisp.am ($(am__ELCFILES)): Likewise.
lib/am/check.am
lib/am/distdir.am
lib/am/header-vars.am
lib/am/lisp.am