aboutsummaryrefslogtreecommitdiff
path: root/libxsde
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-02-25 09:54:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-02-25 09:54:14 +0200
commitbf3cfa08d963b55297ba246a0e7c79533f560903 (patch)
tree9159a9fb7cc1c049900ddfd17fde27419c6751dc /libxsde
parentf5c6310f5c11b4cb4a752be9c989df8bce173aa8 (diff)
Autogenerate .gitignore files for tests and examples
This functionality requires build 0.3.4 or later.
Diffstat (limited to 'libxsde')
-rw-r--r--libxsde/xsde/makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/libxsde/xsde/makefile b/libxsde/xsde/makefile
index e095030..f0deaad 100644
--- a/libxsde/xsde/makefile
+++ b/libxsde/xsde/makefile
@@ -551,6 +551,19 @@ $(clean): $(xsde.l).o.clean \
$(addsuffix .cxx.clean,$(cxx_d))
$(call message,rm $$1,rm -f $$1,$(out_base)/config.h)
+
+# Generated .gitignore.
+#
+ifeq ($(out_base),$(src_base))
+$(out_base)/config.h: | $(out_base)/.gitignore
+
+$(out_base)/.gitignore: files := config.h
+$(clean): $(out_base)/.gitignore.clean
+
+$(call include,$(bld_root)/git/gitignore.make)
+endif
+
+
# How to.
#
$(call include,$(bld_root)/cxx/o-l.make)