diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-02-25 09:54:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-02-25 09:54:14 +0200 |
commit | bf3cfa08d963b55297ba246a0e7c79533f560903 (patch) | |
tree | 9159a9fb7cc1c049900ddfd17fde27419c6751dc /tests/cxx/hybrid/list/makefile | |
parent | f5c6310f5c11b4cb4a752be9c989df8bce173aa8 (diff) |
Autogenerate .gitignore files for tests and examples
This functionality requires build 0.3.4 or later.
Diffstat (limited to 'tests/cxx/hybrid/list/makefile')
-rw-r--r-- | tests/cxx/hybrid/list/makefile | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/tests/cxx/hybrid/list/makefile b/tests/cxx/hybrid/list/makefile index 5d70a97..762a481 100644 --- a/tests/cxx/hybrid/list/makefile +++ b/tests/cxx/hybrid/list/makefile @@ -32,16 +32,13 @@ $(driver): $(obj) $(xsde.l) $(obj) $(dep): $(xsde.l.cpp-options) -gen := $(out_base)/$(xsd:.xsd=.hxx) \ - $(out_base)/$(xsd:.xsd=.cxx) \ - $(out_base)/$(xsd:.xsd=-pskel.hxx) \ - $(out_base)/$(xsd:.xsd=-pskel.cxx) \ - $(out_base)/$(xsd:.xsd=-pimpl.hxx) \ - $(out_base)/$(xsd:.xsd=-pimpl.cxx) \ - $(out_base)/$(xsd:.xsd=-sskel.hxx) \ - $(out_base)/$(xsd:.xsd=-sskel.cxx) \ - $(out_base)/$(xsd:.xsd=-simpl.hxx) \ - $(out_base)/$(xsd:.xsd=-simpl.cxx) +genf := $(xsd:.xsd=.hxx) $(xsd:.xsd=.cxx) \ + $(xsd:.xsd=-pskel.hxx) $(xsd:.xsd=-pskel.cxx) \ + $(xsd:.xsd=-pimpl.hxx) $(xsd:.xsd=-pimpl.cxx) \ + $(xsd:.xsd=-sskel.hxx) $(xsd:.xsd=-sskel.cxx) \ + $(xsd:.xsd=-simpl.hxx) $(xsd:.xsd=-simpl.cxx) + +gen := $(addprefix $(out_base)/,$(genf)) $(gen): $(out_root)/xsde/xsde $(gen): xsde := $(out_root)/xsde/xsde @@ -74,6 +71,19 @@ $(clean): $(driver).o.clean \ $(addprefix $(out_base)/,$(xsd:.xsd=.cxx.xsd.clean)) +# Generated .gitignore. +# +ifeq ($(out_base),$(src_base)) +$(gen): | $(out_base)/.gitignore +$(driver): | $(out_base)/.gitignore + +$(out_base)/.gitignore: files := driver $(genf) +$(clean): $(out_base)/.gitignore.clean + +$(call include,$(bld_root)/git/gitignore.make) +endif + + # How to. # $(call include,$(bld_root)/cxx/o-e.make) |