mirror of
https://github.com/brl/mutter.git
synced 2025-02-09 01:54:10 +00:00
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.
This commit is contained in:
parent
97bf60f6ec
commit
700baccc7c
@ -70,15 +70,17 @@ endif
|
|||||||
wrappers: stamp-test-interactive
|
wrappers: stamp-test-interactive
|
||||||
@true
|
@true
|
||||||
|
|
||||||
stamp-test-interactive: Makefile
|
gen-gitignore: Makefile
|
||||||
@wrapper=$(abs_builddir)/wrapper.sh ; \
|
@(echo "/stamp-test-interactive" ; \
|
||||||
chmod +x $$wrapper && \
|
|
||||||
( echo "/stamp-test-interactive" ; \
|
|
||||||
echo "/stamp-test-unit-names" ; \
|
echo "/stamp-test-unit-names" ; \
|
||||||
echo "/test-interactive" ; \
|
echo "/test-interactive" ; \
|
||||||
echo "/test-unit-names.h" ; \
|
echo "/test-unit-names.h" ; \
|
||||||
echo "*.o" ; \
|
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); \
|
for i in $(UNIT_TESTS); \
|
||||||
do \
|
do \
|
||||||
test_bin=$${i%*.c} ; \
|
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
|
test-unit-names.h: stamp-test-unit-names
|
||||||
@true
|
@true
|
||||||
|
|
||||||
stamp-test-unit-names: Makefile
|
stamp-test-unit-names: Makefile gen-gitignore
|
||||||
@( 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 ; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user