summaryrefslogtreecommitdiff
path: root/tests/interactive
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-08-16 11:07:35 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2013-08-19 23:22:38 +0100
commit700baccc7c22077c04fbedb521d9348bf7636e2c (patch)
treeb1b37ccab70d37d3c586458cff25c496f8be5ba8 /tests/interactive
parent97bf60f6ecfd5eb47919630fa580ad7a7cdc3388 (diff)
downloadclutter-700baccc7c22077c04fbedb521d9348bf7636e2c.tar.gz
build: Generate gitignore on BUILT_SOURCES
The test-unit-names.h header file is generated unconditionally, so we need to generate the gitignore file that references it along with the header.
Diffstat (limited to 'tests/interactive')
-rw-r--r--tests/interactive/Makefile.am14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am
index 753d9f47c..381d1e969 100644
--- a/tests/interactive/Makefile.am
+++ b/tests/interactive/Makefile.am
@@ -70,15 +70,17 @@ endif
wrappers: stamp-test-interactive
@true
-stamp-test-interactive: Makefile
- @wrapper=$(abs_builddir)/wrapper.sh ; \
- chmod +x $$wrapper && \
- ( echo "/stamp-test-interactive" ; \
+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 ; \
+ echo ".gitignore" ) > .gitignore
+
+stamp-test-interactive: Makefile
+ @wrapper=$(abs_builddir)/wrapper.sh ; \
+ chmod +x $$wrapper && \
for i in $(UNIT_TESTS); \
do \
test_bin=$${i%*.c} ; \
@@ -111,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
+stamp-test-unit-names: Makefile gen-gitignore
@( echo "/* ** This file is autogenerated. Do not edit. ** */" ; \
echo "" ; \
echo "const char *test_unit_names[] = {" ) > test-unit-names.h ; \