aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-05-06 17:21:21 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-06-02 11:18:47 +0200
commit2fa5c87c2f9946f4b2ee2347eaef7214da0af86a (patch)
tree069172bbddc097ff45df7e1814895784e3b9eb5d
parent8174a918ea3b7cb216bf7ea98cfdc10661b5c37d (diff)
downloadallocbench-2fa5c87c2f9946f4b2ee2347eaef7214da0af86a.tar.gz
allocbench-2fa5c87c2f9946f4b2ee2347eaef7214da0af86a.zip
Makefile: find all our python files and add check target
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
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