aboutsummaryrefslogtreecommitdiff
path: root/tests/schema/enumeration/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-04-15 13:47:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-04-15 13:47:31 +0200
commit4c174428379af308926ec70bc5b58539a1863abf (patch)
tree0f2aeaa68b28e0c86925fd4ae0e2d893d020efdc /tests/schema/enumeration/makefile
parent8b5538ed49925aaf9fa22e961bd632bed8458184 (diff)
Implement enum synthesis from union
A union which has enumerations with a common base as members can be transformed to an equivalent enumeration.
Diffstat (limited to 'tests/schema/enumeration/makefile')
-rw-r--r--tests/schema/enumeration/makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/schema/enumeration/makefile b/tests/schema/enumeration/makefile
new file mode 100644
index 0000000..d958178
--- /dev/null
+++ b/tests/schema/enumeration/makefile
@@ -0,0 +1,35 @@
+# file : tests/schema/enumeration/makefile
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2006-2010 Code Synthesis Tools CC
+# license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+include $(dir $(lastword $(MAKEFILE_LIST)))../../../build/bootstrap.make
+
+tests := 000
+
+driver := $(out_root)/tests/dump/driver
+test := $(out_base)/.test
+clean := $(out_base)/.clean
+
+# Convenience alias for default target.
+#
+$(out_base)/: $(driver)
+
+# Test.
+#
+test_targets := $(addprefix $(out_base)/.test-,$(tests))
+
+$(test): $(test_targets)
+$(test_targets): driver := $(driver)
+
+.PHONY: $(out_base)/.test-%
+$(out_base)/.test-%: $(driver) $(src_base)/test-%.xsd $(src_base)/test-%.std
+ $(call message,test $(out_base)/$*,$(driver) --enum-synthesis $(src_base)/test-$*.xsd | diff -u $(src_base)/test-$*.std -)
+
+# Clean.
+#
+$(clean):
+
+# Dependencies.
+#
+$(call import,$(src_root)/tests/dump/makefile)