build-sys: fix grep warnings when building out-of-tree

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2019-04-01 12:50:52 +02:00 committed by Stefan Berger
parent 402fc2b1e1
commit 3e591832c4

View File

@ -546,7 +546,8 @@ check:
.PHONY: srccheck
srccheck:
@n=`grep -i "nuvo" $(libtpms_tpm2_la_SOURCES) | wc -l`; \
@cd $(srcdir) && \
n=`grep -i "nuvo" $(libtpms_tpm2_la_SOURCES) | wc -l`; \
if test $$n -ne 0; then \
echo "Filter sources!"; \
exit 1; \