summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/interactive/Makefile.am17
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am
index 4f4c40289..bb935ccdc 100644
--- a/tests/interactive/Makefile.am
+++ b/tests/interactive/Makefile.am
@@ -71,13 +71,13 @@ endif
wrappers: stamp-test-interactive
@true
-gen-gitignore: Makefile
- @(echo "/stamp-test-interactive" ; \
- echo "/stamp-test-unit-names" ; \
- echo "/test-interactive" ; \
- echo "/test-unit-names.h" ; \
- echo "*.o" ; \
- echo ".gitignore" ) > .gitignore
+GIT_IGNORE_EXTRA = \
+ stamp-test-interactive \
+ stamp-test-unit-names \
+ test-unit-names.h \
+ $(UNIT_TESTS:.c=$(SHEXT))
+
+include $(top_srcdir)/build/autotools/Makefile.am.gitignore
stamp-test-interactive: Makefile
@wrapper=$(abs_builddir)/wrapper.sh ; \
@@ -90,7 +90,6 @@ stamp-test-interactive: Makefile
echo "$$wrapper $$test_bin \$$@" \
) > $$test_bin$(SHEXT) ; \
chmod +x $$test_bin$(SHEXT) ; \
- echo "/$$test_bin$(SHEXT)" >> .gitignore ; \
done \
&& echo timestamp > $(@F)
@@ -114,7 +113,7 @@ $(top_builddir)/build/win32/test-unit-names.h: test-unit-names.h
test-unit-names.h: stamp-test-unit-names
@true
-stamp-test-unit-names: Makefile gen-gitignore
+stamp-test-unit-names: Makefile
@( echo "/* ** This file is autogenerated. Do not edit. ** */" ; \
echo "" ; \
echo "const char *test_unit_names[] = {" ) > test-unit-names.h ; \