[clutter/clutter-1.16] build: Generate gitignore on BUILT_SOURCES
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.16] build: Generate gitignore on BUILT_SOURCES
- Date: Mon, 19 Aug 2013 23:22:35 +0000 (UTC)
commit 700baccc7c22077c04fbedb521d9348bf7636e2c
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Aug 16 11:07:35 2013 +0100
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.
tests/interactive/Makefile.am | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am
index 753d9f4..381d1e9 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 ; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]