diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-17 18:56:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-17 18:56:22 +0200 |
commit | c34af468acc94691d0a5954eae38a89506bc620e (patch) | |
tree | 828e27a83547c0c12fa54512e12285d680f805f3 /xsd/makefile | |
parent | b3ede28237491c6c5ce2338d4f552d095f9430d6 (diff) |
Generate .gitignore in compiler, test and example makefiles
Diffstat (limited to 'xsd/makefile')
-rw-r--r-- | xsd/makefile | 14 |
1 files changed, 12 insertions, 2 deletions
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) |