Fix false positives in target independence check.
This commit is contained in:
parent
29db27584f
commit
d0cb95a7e1
4
Makefile
4
Makefile
|
@ -561,9 +561,9 @@ test_%:
|
|||
|
||||
check-target-independence:
|
||||
$(V1) for test_target in $(VALID_TARGETS); do \
|
||||
FOUND=$$(grep -rE "\W$${test_target}\W?" src/main | grep -vE "(//)|(/\*).*\W$${test_target}\W?" | grep -vE "^src/main/target"); \
|
||||
FOUND=$$(grep -rE "\W$${test_target}(\W.*)?$$" src/main | grep -vE "(//)|(/\*).*\W$${test_target}(\W.*)?$$" | grep -vE "^src/main/target"); \
|
||||
if [ "$${FOUND}" != "" ]; then \
|
||||
echo "Target dependencies found:"; \
|
||||
echo "Target dependencies for target '$${test_target}' found:"; \
|
||||
echo "$${FOUND}"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
|
|
Loading…
Reference in New Issue