summaryrefslogtreecommitdiff
path: root/tests/exeext.test
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2003-04-10 19:50:22 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2003-04-10 19:50:22 +0000
commit738c30a9ed6d64726ac44dc112fe540939a56c37 (patch)
treeccc991b9c6d5b9a9374427e84329f963c2319837 /tests/exeext.test
parent9845b2f97d71f4c54d5ef2d6dcdaa3a7a450c00f (diff)
downloadautomake-738c30a9ed6d64726ac44dc112fe540939a56c37.tar.gz
Retain all variable definitions until the whole Makefile.am has
been processed, then output all variables in one step, at the top of Makefile.in. (Older revisions used to output user variables before generating Automake targets, and to mix Automake variables with Automake targets, preventing redefinitions of previously output variables.) * automake.in (%var_pretty): New variable. (VAR_ASIS, VAR_PRETTY): New constants. (@var_list): Rename as ... (@var_order): ... this. (initialize_per_input): Clear %var_pretty. (handle_variables): New function, extracted from ... (read_main_am_file): ... here. (generate_makefile): Call handle_variable after everything else. (handle_dist): Use define_pretty_variable, not pretty_print. (pretty_print): Delete. (macro_define): Augment with $COMMENT and $PRETTY parameters. Update %var_comment, %var_pretty, and @var_order. Adjust callers. (variable_pretty_output): Merge with ... (variable_output): ... this, and choose the prettiness on a per-condition basis. (append_comments): Delete. This work is now done by macro_define. (read_am_file, file_contents_internal): Don't call append_comments nor update @var_list, adjust calls to macro_define. (handle_subdirs): Don't explicitly output RECURSIVE_TARGETS, just mark it as VAR_PRETTY. * tests/exeext.test: Make sure bin_PROGRAMS is output only once. Report from Jim Meyering.
Diffstat (limited to 'tests/exeext.test')
-rwxr-xr-xtests/exeext.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/exeext.test b/tests/exeext.test
index 145b5371c..41f72d356 100755
--- a/tests/exeext.test
+++ b/tests/exeext.test
@@ -22,6 +22,8 @@
# Report from Robert Collins.
# Also make sure we rewrite conditionals variables.
# Also check for PR/352.
+# Also make sure the old definitions of bin_PROGRAMS and friend
+# aren't left around. Report from Jim Meyering.
. ./defs || exit 1
@@ -65,6 +67,7 @@ grep '^maude\.static$(EXEEXT):' Makefile.in
grep '^maude3$(EXEEXT):' Makefile.in
grep '^mt$(EXEEXT):' Makefile.in
grep '^rmt$(EXEEXT):' Makefile.in
+test `grep '^bin_PROGRAMS =' Makefile.in | wc -l` = 1
# Make sure $(EXEEXT) gets stripped before canonicalization.
grep 'maude3__EXEEXT__OBJECTS' Makefile.in && exit 1