]> git.proxmox.com Git - libtpms.git/commitdiff
build-sys: fix grep warnings when building out-of-tree
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 1 Apr 2019 10:50:52 +0000 (12:50 +0200)
committerStefan Berger <stefanb@us.ibm.com>
Mon, 1 Apr 2019 15:22:03 +0000 (11:22 -0400)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
src/Makefile.am

index 529ed61aad67cfb7e340adbf59d5b55f00f2f3fe..043a01fbd202047fecd068e06b917fd986c8db83 100644 (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; \