From 2fa5c87c2f9946f4b2ee2347eaef7214da0af86a Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 6 May 2020 17:21:21 +0200 Subject: Makefile: find all our python files and add check target --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f20c910..662d3e8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ SRCDIR = allocbench -PYTHONFILES = $(shell find $(SRCDIR)/ -name "*.py") +PYTHONFILES = $(shell find -name "*.py" -not -path "./cache/*" -not -path "./build/*" -not -path "./.git/*") MAKEFILES = $(shell dirname $(shell find $(SRCDIR)/ -name Makefile)) CMAKELISTS = $(shell dirname $(shell find $(SRCDIR)/ -name CMakeLists.txt)) @@ -20,7 +20,7 @@ export CXXFLAGS = -std=c++11 $(CFLAGS) -fno-exceptions export LDFLAGS = -pthread -static-libgcc export LDXXFLAGS = $(LDFLAGS) -static-libstdc++ -.PHONY: all clean pylint yapf tags $(MAKEFILES) $(CMAKELISTS) +.PHONY: all clean pylint yapf tags check $(MAKEFILES) $(CMAKELISTS) all: $(OBJDIR)/ccinfo $(MAKEFILES) $(CMAKELISTS) $(CMAKELISTS): @@ -55,3 +55,5 @@ yapf: tags: ctags -R --exclude="build/*" --exclude="cache/*" --exclude="doc/*" --exclude="results/*" + +check: pylint -- cgit v1.2.3