summaryrefslogtreecommitdiff
path: root/libxsd-frontend/tests/schema/annotation/makefile
blob: 7705ba84742c0d80aa89fcd7227941325ad44d53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# file      : tests/schema/annotation/makefile
# copyright : Copyright (c) 2006-2014 Code Synthesis Tools CC
# license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

include $(dir $(lastword $(MAKEFILE_LIST)))../../../build/bootstrap.make

tests := 000 001

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) $(src_base)/test-$*.xsd | diff -u $(src_base)/test-$*.std -)

# Clean.
#
$(clean):

# Dependencies.
#
$(call import,$(src_root)/tests/dump/makefile)