From bf3cfa08d963b55297ba246a0e7c79533f560903 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 25 Feb 2009 09:54:14 +0200 Subject: Autogenerate .gitignore files for tests and examples This functionality requires build 0.3.4 or later. --- tests/cxx/hybrid/sequences/makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'tests/cxx/hybrid/sequences') diff --git a/tests/cxx/hybrid/sequences/makefile b/tests/cxx/hybrid/sequences/makefile index 41f5941..8fcf245 100644 --- a/tests/cxx/hybrid/sequences/makefile +++ b/tests/cxx/hybrid/sequences/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) -- cgit v1.1