diff options
author | Paul Smith <psmith@gnu.org> | 2004-05-16 19:16:52 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2004-05-16 19:16:52 +0000 |
commit | 08c8105c5468ff743d2f2ff2fdf3b77a6313b53e (patch) | |
tree | 51954f0469a6d70c1b58fd30a5955aa5e4b65c86 /tests/scripts/features/include | |
parent | e334942e573ea8a4416eca0afafcaf45c3bba06f (diff) | |
download | gunmake-08c8105c5468ff743d2f2ff2fdf3b77a6313b53e.tar.gz |
Various enhancements
- OS/2 Patches
- OpenVMS updates
- Sanitize the handling of -include/sinclude with and without -k
- Fix the setting of $< for order-only rules.
Diffstat (limited to 'tests/scripts/features/include')
-rw-r--r-- | tests/scripts/features/include | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/tests/scripts/features/include b/tests/scripts/features/include index 60f4482..5f20ad8 100644 --- a/tests/scripts/features/include +++ b/tests/scripts/features/include @@ -2,7 +2,8 @@ $description = "Test various forms of the GNU make `include' command."; -$details = "Test include, -include, sinclude and various regressions involving them. +$details = "\ +Test include, -include, sinclude and various regressions involving them. Test extra whitespace at the end of the include, multiple -includes and sincludes (should not give an error) and make sure that errors are reported for targets that were also -included."; @@ -46,16 +47,36 @@ $answer = "There should be no errors for this makefile.\n"; $answer = "This is another included makefile\n"; &compare_output($answer, &get_logfile(1)); +$makefile = undef; + # Try to build the "error" target; this will fail since we don't know # how to create makeit.mk, but we should also get a message (even though # the -include suppressed it during the makefile read phase, we should # see one during the makefile run phase). -# The fix to this caused more problems than the error, so I removed it. -# pds -- 22 Jan 2000 +run_make_test + (' +-include foo.mk +error: foo.mk ; @echo $@ +', + '', + "#MAKE#: *** No rule to make target `foo.mk', needed by `error'. Stop.\n", + 512 + ); + +# Make sure that target-specific variables don't impact things. This could +# happen because a file record is created when a target-specific variable is +# set. + +run_make_test + (' +bar.mk: foo := baz +-include bar.mk +hello: ; @echo hello +', + '', + "hello\n" + ); -#&run_make_with_options($makefile, "error", &get_logfile, 512); -#$answer = "$make_name: *** No rule to make target `makeit.mk', needed by `error'.\n"; -#&compare_output($answer, &get_logfile(1)); 1; |