aboutsummaryrefslogtreecommitdiff
path: root/tests/include/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include/makefile')
-rw-r--r--tests/include/makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/include/makefile b/tests/include/makefile
new file mode 100644
index 0000000..0250228
--- /dev/null
+++ b/tests/include/makefile
@@ -0,0 +1,25 @@
+# file : build/include/makefile
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC
+# license : GNU GPL v2; see accompanying LICENSE file
+
+include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make
+
+foo := one
+
+$(call include-once,included,$(foo))
+$(call include-once,included,$(foo))
+
+foo := two
+
+$(call include-once,included,$(foo))
+$(call include-once,included,$(foo))
+
+foo := one
+
+$(call include-once,included,$(foo))
+
+$(warning $(value %include_once_$(realpath included)%))
+
+.PHONY: h
+h:;@: