From 6c620880eb15473a6414901f4764daf06dc4372c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Sep 2009 15:40:15 +0200 Subject: Get rid of unnecessary .PHONY declarations --- tests/cxx/parser/validation/all/makefile | 6 ------ tests/cxx/parser/validation/any/makefile | 6 ------ tests/cxx/parser/validation/attribute/makefile | 6 ------ tests/cxx/parser/validation/built-in/any-type/makefile | 6 ------ tests/cxx/parser/validation/built-in/binary/makefile | 5 ----- tests/cxx/parser/validation/built-in/boolean/makefile | 5 ----- tests/cxx/parser/validation/built-in/byte/makefile | 5 ----- tests/cxx/parser/validation/built-in/date-time/makefile | 5 ----- tests/cxx/parser/validation/built-in/float/makefile | 5 ----- tests/cxx/parser/validation/built-in/int/makefile | 5 ----- tests/cxx/parser/validation/built-in/integer/makefile | 5 ----- tests/cxx/parser/validation/built-in/long/makefile | 5 ----- tests/cxx/parser/validation/built-in/makefile | 2 -- tests/cxx/parser/validation/built-in/qname/makefile | 5 ----- tests/cxx/parser/validation/built-in/short/makefile | 5 ----- tests/cxx/parser/validation/built-in/string/makefile | 5 ----- tests/cxx/parser/validation/built-in/uri/makefile | 5 ----- tests/cxx/parser/validation/choice/makefile | 5 ----- tests/cxx/parser/validation/makefile | 4 ---- tests/cxx/parser/validation/restriction/makefile | 6 ------ tests/cxx/parser/validation/sequence/makefile | 6 ------ 21 files changed, 107 deletions(-) (limited to 'tests/cxx/parser/validation') diff --git a/tests/cxx/parser/validation/all/makefile b/tests/cxx/parser/validation/all/makefile index 1e1b33c..324cc61 100644 --- a/tests/cxx/parser/validation/all/makefile +++ b/tests/cxx/parser/validation/all/makefile @@ -42,7 +42,6 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) @@ -50,10 +49,7 @@ $(out_base)/: $(driver) # test_targets := $(addprefix $(out_base)/.test-,$(tests)) -.PHONY: $(test) $(test): $(test_targets) - - $(test_targets): driver := $(driver) .PHONY: $(out_base)/.test-% @@ -63,8 +59,6 @@ $(out_base)/.test-%: $(driver) $(src_base)/test.xsd $(src_base)/test-%.xml $(src # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) \ diff --git a/tests/cxx/parser/validation/any/makefile b/tests/cxx/parser/validation/any/makefile index 19fc057..8e66e39 100644 --- a/tests/cxx/parser/validation/any/makefile +++ b/tests/cxx/parser/validation/any/makefile @@ -42,7 +42,6 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) @@ -50,10 +49,7 @@ $(out_base)/: $(driver) # test_targets := $(addprefix $(out_base)/.test-,$(tests)) -.PHONY: $(test) $(test): $(test_targets) - - $(test_targets): driver := $(driver) .PHONY: $(out_base)/.test-% @@ -63,8 +59,6 @@ $(out_base)/.test-%: $(driver) $(src_base)/test.xsd $(src_base)/test-%.xml $(src # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) \ diff --git a/tests/cxx/parser/validation/attribute/makefile b/tests/cxx/parser/validation/attribute/makefile index d5a83a3..4141c45 100644 --- a/tests/cxx/parser/validation/attribute/makefile +++ b/tests/cxx/parser/validation/attribute/makefile @@ -42,7 +42,6 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) @@ -50,10 +49,7 @@ $(out_base)/: $(driver) # test_targets := $(addprefix $(out_base)/.test-,$(tests)) -.PHONY: $(test) $(test): $(test_targets) - - $(test_targets): driver := $(driver) .PHONY: $(out_base)/.test-% @@ -63,8 +59,6 @@ $(out_base)/.test-%: $(driver) $(src_base)/test.xsd $(src_base)/test-%.xml $(src # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) \ diff --git a/tests/cxx/parser/validation/built-in/any-type/makefile b/tests/cxx/parser/validation/built-in/any-type/makefile index 1c93b76..f0269fb 100644 --- a/tests/cxx/parser/validation/built-in/any-type/makefile +++ b/tests/cxx/parser/validation/built-in/any-type/makefile @@ -42,7 +42,6 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) @@ -50,10 +49,7 @@ $(out_base)/: $(driver) # test_targets := $(addprefix $(out_base)/.test-,$(tests)) -.PHONY: $(test) $(test): $(test_targets) - - $(test_targets): driver := $(driver) .PHONY: $(out_base)/.test-% @@ -63,8 +59,6 @@ $(out_base)/.test-%: $(driver) $(src_base)/test.xsd $(src_base)/test-%.xml $(src # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) \ diff --git a/tests/cxx/parser/validation/built-in/binary/makefile b/tests/cxx/parser/validation/built-in/binary/makefile index 27ddeef..bab972d 100644 --- a/tests/cxx/parser/validation/built-in/binary/makefile +++ b/tests/cxx/parser/validation/built-in/binary/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/built-in/boolean/makefile b/tests/cxx/parser/validation/built-in/boolean/makefile index bf16586..ac9e9a7 100644 --- a/tests/cxx/parser/validation/built-in/boolean/makefile +++ b/tests/cxx/parser/validation/built-in/boolean/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/built-in/byte/makefile b/tests/cxx/parser/validation/built-in/byte/makefile index efe7f01..ab96263 100644 --- a/tests/cxx/parser/validation/built-in/byte/makefile +++ b/tests/cxx/parser/validation/built-in/byte/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/built-in/date-time/makefile b/tests/cxx/parser/validation/built-in/date-time/makefile index 12eb7ba..7dc3ddf 100644 --- a/tests/cxx/parser/validation/built-in/date-time/makefile +++ b/tests/cxx/parser/validation/built-in/date-time/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/built-in/float/makefile b/tests/cxx/parser/validation/built-in/float/makefile index 1a39e04..705b67b 100644 --- a/tests/cxx/parser/validation/built-in/float/makefile +++ b/tests/cxx/parser/validation/built-in/float/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/built-in/int/makefile b/tests/cxx/parser/validation/built-in/int/makefile index c626a9c..6114808 100644 --- a/tests/cxx/parser/validation/built-in/int/makefile +++ b/tests/cxx/parser/validation/built-in/int/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/built-in/integer/makefile b/tests/cxx/parser/validation/built-in/integer/makefile index 8d52dee..0ed55bb 100644 --- a/tests/cxx/parser/validation/built-in/integer/makefile +++ b/tests/cxx/parser/validation/built-in/integer/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/built-in/long/makefile b/tests/cxx/parser/validation/built-in/long/makefile index b9289b1..bbf4499 100644 --- a/tests/cxx/parser/validation/built-in/long/makefile +++ b/tests/cxx/parser/validation/built-in/long/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/built-in/makefile b/tests/cxx/parser/validation/built-in/makefile index e0728b0..45a2435 100644 --- a/tests/cxx/parser/validation/built-in/makefile +++ b/tests/cxx/parser/validation/built-in/makefile @@ -12,8 +12,6 @@ default := $(out_base)/ test := $(out_base)/.test clean := $(out_base)/.clean -.PHONY: $(default) $(test) $(clean) - $(default): $(addprefix $(out_base)/,$(addsuffix /,$(tests))) $(test): $(addprefix $(out_base)/,$(addsuffix /.test,$(tests))) $(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(tests))) diff --git a/tests/cxx/parser/validation/built-in/qname/makefile b/tests/cxx/parser/validation/built-in/qname/makefile index b541239..a71e7aa 100644 --- a/tests/cxx/parser/validation/built-in/qname/makefile +++ b/tests/cxx/parser/validation/built-in/qname/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/built-in/short/makefile b/tests/cxx/parser/validation/built-in/short/makefile index 0457f13..00f1bf4 100644 --- a/tests/cxx/parser/validation/built-in/short/makefile +++ b/tests/cxx/parser/validation/built-in/short/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/built-in/string/makefile b/tests/cxx/parser/validation/built-in/string/makefile index 46b7b5f..edcef8c 100644 --- a/tests/cxx/parser/validation/built-in/string/makefile +++ b/tests/cxx/parser/validation/built-in/string/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/built-in/uri/makefile b/tests/cxx/parser/validation/built-in/uri/makefile index 1a28808..0ed0eee 100644 --- a/tests/cxx/parser/validation/built-in/uri/makefile +++ b/tests/cxx/parser/validation/built-in/uri/makefile @@ -32,22 +32,17 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) # Test. # -.PHONY: $(test) - $(test): driver := $(driver) $(test): $(driver) $(call message,test $$1,$$1,$(driver)) # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) diff --git a/tests/cxx/parser/validation/choice/makefile b/tests/cxx/parser/validation/choice/makefile index d808ee2..ba8c89a 100644 --- a/tests/cxx/parser/validation/choice/makefile +++ b/tests/cxx/parser/validation/choice/makefile @@ -42,7 +42,6 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) @@ -50,9 +49,7 @@ $(out_base)/: $(driver) # test_targets := $(addprefix $(out_base)/.test-,$(tests)) -.PHONY: $(test) $(test): $(test_targets) - $(test_targets): driver := $(driver) .PHONY: $(out_base)/.test-% @@ -62,8 +59,6 @@ $(out_base)/.test-%: $(driver) $(src_base)/test.xsd $(src_base)/test-%.xml $(src # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) \ diff --git a/tests/cxx/parser/validation/makefile b/tests/cxx/parser/validation/makefile index 9000e4c..e2e23e0 100644 --- a/tests/cxx/parser/validation/makefile +++ b/tests/cxx/parser/validation/makefile @@ -5,16 +5,12 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../../../../build/bootstrap.make - tests := all any attribute built-in choice restriction sequence - default := $(out_base)/ test := $(out_base)/.test clean := $(out_base)/.clean -.PHONY: $(default) $(test) $(clean) - $(default): $(addprefix $(out_base)/,$(addsuffix /,$(tests))) $(test): $(addprefix $(out_base)/,$(addsuffix /.test,$(tests))) $(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(tests))) diff --git a/tests/cxx/parser/validation/restriction/makefile b/tests/cxx/parser/validation/restriction/makefile index c7914c2..2a52880 100644 --- a/tests/cxx/parser/validation/restriction/makefile +++ b/tests/cxx/parser/validation/restriction/makefile @@ -42,7 +42,6 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) @@ -50,10 +49,7 @@ $(out_base)/: $(driver) # test_targets := $(addprefix $(out_base)/.test-,$(tests)) -.PHONY: $(test) $(test): $(test_targets) - - $(test_targets): driver := $(driver) .PHONY: $(out_base)/.test-% @@ -63,8 +59,6 @@ $(out_base)/.test-%: $(driver) $(src_base)/test.xsd $(src_base)/test-%.xml $(src # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) \ diff --git a/tests/cxx/parser/validation/sequence/makefile b/tests/cxx/parser/validation/sequence/makefile index 7040d98..32a2781 100644 --- a/tests/cxx/parser/validation/sequence/makefile +++ b/tests/cxx/parser/validation/sequence/makefile @@ -42,7 +42,6 @@ $(call include-dep,$(dep)) # Convenience alias for default target. # -.PHONY: $(out_base)/ $(out_base)/: $(driver) @@ -50,10 +49,7 @@ $(out_base)/: $(driver) # test_targets := $(addprefix $(out_base)/.test-,$(tests)) -.PHONY: $(test) $(test): $(test_targets) - - $(test_targets): driver := $(driver) .PHONY: $(out_base)/.test-% @@ -63,8 +59,6 @@ $(out_base)/.test-%: $(driver) $(src_base)/test.xsd $(src_base)/test-%.xml $(src # Clean. # -.PHONY: $(clean) - $(clean): $(driver).o.clean \ $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) \ -- cgit v1.1