summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2009-06-13 23:10:52 +0000
committerPaul Smith <psmith@gnu.org>2009-06-13 23:10:52 +0000
commitdceb954f9c0a948b8d53796fd78b7cfae9148b1b (patch)
tree99906d4dae8d094097f37927affa603e498510b1 /tests/scripts
parent38b23bc3f02ec199370865be9bd970e6318fa1d2 (diff)
downloadgunmake-dceb954f9c0a948b8d53796fd78b7cfae9148b1b.tar.gz
- Fix Savannah bug #13401
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/variables/MAKEFILES19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/scripts/variables/MAKEFILES b/tests/scripts/variables/MAKEFILES
index 3be284b..b23da8e 100644
--- a/tests/scripts/variables/MAKEFILES
+++ b/tests/scripts/variables/MAKEFILES
@@ -31,4 +31,23 @@ close(MAKEFILE);
$answer = "DEFAULT RULE: M2=m2 M3=m3\n";
&compare_output($answer,&get_logfile(1));
+# TEST 2: Verify that included makefiles don't set the default goal.
+# See Savannah bug #13401.
+
+create_file('xx-inc.mk', '
+include_goal: ; @echo $@
+include xx-ind.mk
+');
+
+create_file('xx-ind.mk', '
+indirect_goal: ; @echo $@
+');
+
+run_make_test(q!
+top: ; @echo $@
+!,
+ 'MAKEFILES=xx-inc.mk', "top\n");
+
+unlink(qw(xx-inc.mk xx-ind.mk));
+
1;