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. --- xsde/makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'xsde/makefile') diff --git a/xsde/makefile b/xsde/makefile index 2272811..9d25cf9 100644 --- a/xsde/makefile +++ b/xsde/makefile @@ -154,6 +154,18 @@ $(clean): \ $(addsuffix .cxx.clean,$(cxx_od)) +# Generated .gitignore. +# +ifeq ($(out_base),$(src_base)) +$(xsde): | $(out_base)/.gitignore + +$(out_base)/.gitignore: files := xsde +$(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