aboutsummaryrefslogtreecommitdiff
path: root/examples/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-04-28 08:22:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-04-28 08:22:06 +0200
commitecdada3e6c4f1e57bad487d5225993e0bc646f6e (patch)
treeca25bef1138e7e0c23639198a13337d89f7a8ae8 /examples/makefile
parentf19abd10673c3a07f9d591c7ea076a609755171e (diff)
Add roundtrip example, root makefile
Diffstat (limited to 'examples/makefile')
-rw-r--r--examples/makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/makefile b/examples/makefile
new file mode 100644
index 0000000..3b9b68f
--- /dev/null
+++ b/examples/makefile
@@ -0,0 +1,17 @@
+# file : examples/makefile
+# copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
+# license : MIT; see accompanying LICENSE file
+
+include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
+
+tests := roundtrip
+
+default := $(out_base)/
+test := $(out_base)/.test
+clean := $(out_base)/.clean
+
+$(default): $(addprefix $(out_base)/,$(addsuffix /,$(tests)))
+$(test): $(addprefix $(out_base)/,$(addsuffix /.test,$(tests)))
+$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(tests)))
+
+$(foreach t,$(tests),$(call import,$(src_base)/$t/makefile))