aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-16 18:43:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-16 18:43:00 +0200
commit08c773c71968fb92330572e95694b9ee3f37d267 (patch)
tree5e946b02854bb7a6df4e94b4fd8aa8683663350f /tests
parentf6ce9b5981ce316c5f3fd59fda62f21d03ef9b8c (diff)
Generate .gitignore files
Diffstat (limited to 'tests')
-rw-r--r--tests/dump/makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/dump/makefile b/tests/dump/makefile
index c115e9c..ddd8986 100644
--- a/tests/dump/makefile
+++ b/tests/dump/makefile
@@ -39,6 +39,16 @@ $(clean): $(driver).o.clean \
$(addsuffix .cxx.clean,$(cxx_obj)) \
$(addsuffix .cxx.clean,$(cxx_od))
+# 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.
#