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 wrappers: stamp-test-interactive
@true @true
gen-gitignore: Makefile GIT_IGNORE_EXTRA = \
@(echo "/stamp-test-interactive" ; \ stamp-test-interactive \
echo "/stamp-test-unit-names" ; \ stamp-test-unit-names \
echo "/test-interactive" ; \ test-unit-names.h \
echo "/test-unit-names.h" ; \ $(UNIT_TESTS:.c=$(SHEXT))
echo "*.o" ; \
echo ".gitignore" ) > .gitignore include $(top_srcdir)/build/autotools/Makefile.am.gitignore
stamp-test-interactive: Makefile stamp-test-interactive: Makefile
@wrapper=$(abs_builddir)/wrapper.sh ; \ @wrapper=$(abs_builddir)/wrapper.sh ; \
@ -90,7 +90,6 @@ stamp-test-interactive: Makefile
echo "$$wrapper $$test_bin \$$@" \ echo "$$wrapper $$test_bin \$$@" \
) > $$test_bin$(SHEXT) ; \ ) > $$test_bin$(SHEXT) ; \
chmod +x $$test_bin$(SHEXT) ; \ chmod +x $$test_bin$(SHEXT) ; \
echo "/$$test_bin$(SHEXT)" >> .gitignore ; \
done \ done \
&& echo timestamp > $(@F) && 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 test-unit-names.h: stamp-test-unit-names
@true @true
stamp-test-unit-names: Makefile gen-gitignore stamp-test-unit-names: Makefile
@( echo "/* ** This file is autogenerated. Do not edit. ** */" ; \ @( echo "/* ** This file is autogenerated. Do not edit. ** */" ; \
echo "" ; \ echo "" ; \
echo "const char *test_unit_names[] = {" ) > test-unit-names.h ; \ echo "const char *test_unit_names[] = {" ) > test-unit-names.h ; \