build: Drop ad hoc gitignore generation rules

Instead, include Makefile.am.gitignore.
This commit is contained in:
Emmanuele Bassi 2015-01-01 19:40:18 +00:00
parent 7bfd62f755
commit 847e3a2c55

View File

@ -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 ; \