From 613b56ee5503090b8acbb99805860f47a6081bff Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 5 May 2021 09:19:44 +0200 Subject: [PATCH] Add correct prefix on the clang-tidy commandline --- src/common/Makefile.am | 2 +- src/libopensc/Makefile.am | 2 +- src/pkcs11/Makefile.am | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/Makefile.am b/src/common/Makefile.am index c5494015..83a40e1c 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -43,4 +43,4 @@ TIDY_FILES = \ libpkcs11.c libscdl.c check-local: - if [ -x "$(CLANGTIDY)" ]; then clang-tidy -config='' --checks='$(TIDY_CHECKS)' -header-filter=.* $(TIDY_FILES) -- $(TIDY_FLAGS); fi + if [ -x "$(CLANGTIDY)" ]; then clang-tidy -config='' --checks='$(TIDY_CHECKS)' -header-filter=.* $(addprefix $(srcdir)/,$(TIDY_FILES)) -- $(TIDY_FLAGS); fi diff --git a/src/libopensc/Makefile.am b/src/libopensc/Makefile.am index 2cee992d..40d77e58 100644 --- a/src/libopensc/Makefile.am +++ b/src/libopensc/Makefile.am @@ -147,4 +147,4 @@ TIDY_FILES = \ #$(SOURCES) check-local: - if [ -x "$(CLANGTIDY)" ]; then clang-tidy -config='' --checks='$(TIDY_CHECKS)' -header-filter=.* $(TIDY_FILES) -- $(TIDY_FLAGS); fi + if [ -x "$(CLANGTIDY)" ]; then clang-tidy -config='' --checks='$(TIDY_CHECKS)' -header-filter=.* $(addprefix $(srcdir)/,$(TIDY_FILES)) -- $(TIDY_FLAGS); fi diff --git a/src/pkcs11/Makefile.am b/src/pkcs11/Makefile.am index 8aeaec58..557a52ef 100644 --- a/src/pkcs11/Makefile.am +++ b/src/pkcs11/Makefile.am @@ -87,4 +87,4 @@ TIDY_FILES = \ framework-pkcs15init.c debug.c check-local: - if [ -x "$(CLANGTIDY)" ]; then clang-tidy -config='' --checks='$(TIDY_CHECKS)' -header-filter=.* $(TIDY_FILES) -- $(TIDY_FLAGS); fi + if [ -x "$(CLANGTIDY)" ]; then clang-tidy -config='' --checks='$(TIDY_CHECKS)' -header-filter=.* $(addprefix $(srcdir)/,$(TIDY_FILES)) -- $(TIDY_FLAGS); fi