projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f9018f
)
fate: check that dependencies actually exist
author
Mans Rullgard
<mans@mansr.com>
Tue, 23 Oct 2012 02:28:08 +0000
(
03:28
+0100)
committer
Mans Rullgard
<mans@mansr.com>
Tue, 23 Oct 2012 10:12:24 +0000
(11:12 +0100)
This causes make to exit with an error message if a nonexistent
dependency is specified rather than silently dropping the test.
Signed-off-by: Mans Rullgard <mans@mansr.com>
tests/Makefile
patch
|
blob
|
history
diff --git
a/tests/Makefile
b/tests/Makefile
index
8bc2b41
..
64ad6ad
100644
(file)
--- a/
tests/Makefile
+++ b/
tests/Makefile
@@
-20,9
+20,11
@@
tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
tests/data/asynth% tests/data/vsynth%.yuv tests/vsynth%/00.pgm: TAG = GEN
+CHKCFG = $(if $($(1))$(!$(1)),$($(1)), $(error No such config: $(1)))
+
ALLYES = $(strip $(call XYES, $(1)))
XYES = $(if $(strip $(1)), \
- $(if $(
CONFIG_$(firstword $(1))),
\
+ $(if $(
call CHKCFG,CONFIG_$(firstword $(1))),
\
$(call XYES, $(wordlist 2, $(words $(1)), $(1)))), \
yes)