From 3f4b9f89e1baa2f23140fcb87519da3afc3f12ae Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 17 Jan 2017 20:10:00 +0100 Subject: make: Check if we can use parallel flake --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e512cfe8..ad61026f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ PY_EXAMPLES=$(shell grep -l /usr/bin/python examples/*) +FLAKE_OPTS=$(shell test -w /dev/shm || echo '-j1') all: syntax-check test @@ -14,8 +15,8 @@ test: python setup.py nosetests --with-xcoverage syntax-check: - flake8 -j1 - flake8 -j1 $(PY_EXAMPLES) + flake8 $(FLAKE_OPTS) + flake8 $(FLAKE_OPTS) $(PY_EXAMPLES) docs: make -C docs -- cgit v1.2.3