diff options
Diffstat (limited to 'tests/cxx/parser/validation/any/makefile')
-rw-r--r-- | tests/cxx/parser/validation/any/makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/cxx/parser/validation/any/makefile b/tests/cxx/parser/validation/any/makefile index dfc1c21..bea02ae 100644 --- a/tests/cxx/parser/validation/any/makefile +++ b/tests/cxx/parser/validation/any/makefile @@ -27,9 +27,8 @@ $(driver): $(obj) $(xsde.l) $(obj) $(dep): $(xsde.l.cpp-options) -skel := $(out_base)/$(xsd:.xsd=-pskel.hxx) \ - $(out_base)/$(xsd:.xsd=-pskel.ixx) \ - $(out_base)/$(xsd:.xsd=-pskel.cxx) +skelf := $(xsd:.xsd=-pskel.hxx) $(xsd:.xsd=-pskel.ixx) $(xsd:.xsd=-pskel.cxx) +skel := $(addprefix $(out_base)/,$(skelf)) $(skel): xsde := $(out_root)/xsde/xsde $(skel): $(out_root)/xsde/xsde @@ -68,6 +67,19 @@ $(clean): $(driver).o.clean \ $(addprefix $(out_base)/,$(xsd:.xsd=-pskel.cxx.xsd.clean)) +# Generated .gitignore. +# +ifeq ($(out_base),$(src_base)) +$(skel): | $(out_base)/.gitignore +$(driver): | $(out_base)/.gitignore + +$(out_base)/.gitignore: files := driver $(skelf) +$(clean): $(out_base)/.gitignore.clean + +$(call include,$(bld_root)/git/gitignore.make) +endif + + # How to. # $(call include,$(bld_root)/cxx/o-e.make) |