From c34af468acc94691d0a5954eae38a89506bc620e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Sep 2009 18:56:22 +0200 Subject: Generate .gitignore in compiler, test and example makefiles --- xsd/makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'xsd/makefile') diff --git a/xsd/makefile b/xsd/makefile index e09a737..af783cb 100644 --- a/xsd/makefile +++ b/xsd/makefile @@ -114,7 +114,7 @@ $(out_base)/: $(xsd) $(install): $(xsd) $(call install-exec,$<,$(install_bin_dir)/xsd) -# clean +# Clean. # .PHONY: $(clean) @@ -123,8 +123,18 @@ $(clean): \ $(addsuffix .cxx.clean,$(cxx_obj)) \ $(addsuffix .cxx.clean,$(cxx_od)) +# Generated .gitignore. +# +ifeq ($(out_base),$(src_base)) +$(xsd): | $(out_base)/.gitignore + +$(out_base)/.gitignore: files := xsd +$(clean): $(out_base)/.gitignore.clean + +$(call include,$(bld_root)/git/gitignore.make) +endif -# how to +# How to. # $(call include,$(bld_root)/cxx/o-e.make) $(call include,$(bld_root)/cxx/cxx-o.make) -- cgit v1.1