]> git.ipfire.org Git - thirdparty/automake.git/commit
[ng] refactor: consider $(EXEEXT) used if non-empty at make runtime
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 30 Jul 2012 07:40:05 +0000 (09:40 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 30 Jul 2012 08:04:42 +0000 (10:04 +0200)
commitef7b8500dd4f93ed3411d06b45dcd4134e641bd0
tree7bb796c24ba6cfa249ced010768ff12e99f38dd5
parentb300a4cb19fc524d4d640f62754a2b803d8018ba
[ng] refactor: consider $(EXEEXT) used if non-empty at make runtime

To check whether we should handle $(EXEEXT), simply check for
"ifdef EXEEXT" in our Makefile fragments, rather than also checking
whether EXEEXT has been set as a configure-time AC_SUBST.  This
simplifies the logic, and move it completely at make runtime, rather
than having it split between automake runtime (to decide whether
EXEEXT is AC_SUBST) and make runtime (to decide whether $(EXEEXT) is
empty).

* lib/am/header-vars.am (EXEEXT): Default to empty.  This is required
to avoid environment interferences.
(am.conf.handle-exeext): Define this no more.
* lib/am/parallel-tests.am, lib/am/serial-tests.am: Simply look
at $(EXEEXT), rather than using $(am.conf.handle-exeext), or the
'%?HANDLE-EXEEXT%' transform.
* automake.in (process_file): Don't define that transform anymore.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
automake.in
lib/am/header-vars.am
lib/am/parallel-tests.am
lib/am/serial-tests.am