diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-27 19:55:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-27 19:55:14 +0200 |
commit | 14b909b25dec8e68f7bcb35e89ce503c5f12967c (patch) | |
tree | b6ed37a611d99eb5e3110a4a048e55b4ca447e47 /tests/cxx/parser/recursive/makefile | |
parent | 686b15bcd3d9045fdb4679970b0f39466125abf8 (diff) |
Reimplement state stack not to move elements
Add another recursive parsing test that forces second allocation
in the stack.
Diffstat (limited to 'tests/cxx/parser/recursive/makefile')
-rw-r--r-- | tests/cxx/parser/recursive/makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/cxx/parser/recursive/makefile b/tests/cxx/parser/recursive/makefile index 7b9d36f..79307b7 100644 --- a/tests/cxx/parser/recursive/makefile +++ b/tests/cxx/parser/recursive/makefile @@ -8,6 +8,8 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../../../../build/bootstrap.make xsd := test.xsd cxx := driver.cxx +tests := 000 001 + obj := $(addprefix $(out_base)/,$(cxx:.cxx=.o) $(xsd:.xsd=-pskel.o)) dep := $(obj:.o=.o.d) @@ -43,9 +45,14 @@ $(out_base)/: $(driver) # Test. # -$(test): driver := $(driver) -$(test): $(driver) $(src_base)/test-000.xml $(src_base)/test-000.std - $(call message,test $$1,$$1 $(src_base)/test-000.xml | diff -u $(src_base)/test-000.std -,$(driver)) +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-%.xml $(src_base)/test-%.std + $(call message,test $(out_base)/$*,$(driver) $(src_base)/test-$*.xml | diff -u $(src_base)/test-$*.std -) # Dist. |