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/string/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/string/makefile')
-rw-r--r-- | tests/cxx/string/makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/cxx/string/makefile b/tests/cxx/string/makefile index f9b239a..19cacef 100644 --- a/tests/cxx/string/makefile +++ b/tests/cxx/string/makefile @@ -44,11 +44,23 @@ $(test): $(driver) # .PHONY: $(clean) -$(clean): $(driver).o.clean \ - $(addsuffix .cxx.clean,$(obj)) \ +$(clean): $(driver).o.clean \ + $(addsuffix .cxx.clean,$(obj)) \ $(addsuffix .cxx.clean,$(dep)) +# Generated .gitignore. +# +ifeq ($(out_base),$(src_base)) +$(driver): | $(out_base)/.gitignore + +$(out_base)/.gitignore: files := driver +$(clean): $(out_base)/.gitignore.clean + +$(call include,$(bld_root)/git/gitignore.make) +endif + + # How to. # $(call include,$(bld_root)/cxx/o-e.make) |