aboutsummaryrefslogtreecommitdiffstats
path: root/testcase/include_glob_order.mk
diff options
context:
space:
mode:
Diffstat (limited to 'testcase/include_glob_order.mk')
-rw-r--r--testcase/include_glob_order.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/testcase/include_glob_order.mk b/testcase/include_glob_order.mk
new file mode 100644
index 0000000..8b337f9
--- /dev/null
+++ b/testcase/include_glob_order.mk
@@ -0,0 +1,19 @@
+MAKEVER:=$(shell make --version | ruby -n0e 'puts $$_[/Make (\d)/,1]')
+
+# GNU make 4 doesn't sort glob results.
+ifeq ($(MAKEVER,4))
+
+$(info test skipped)
+
+else
+
+test1:
+ echo '$$(info foo)' > foo.d
+ echo '$$(info bar)' > bar.d
+
+test2:
+ echo $(wildcard *.d)
+
+-include *.d
+
+endif