Example and test-suite makefile tidy up
Python output is less verbose if pep8 is not available (tweaks for patch #416)
This commit is contained in:
parent
2348d8377f
commit
0f94ea9208
2 changed files with 18 additions and 25 deletions
|
|
@ -125,17 +125,14 @@ py_runme = $(SCRIPTPREFIX)$*$(SCRIPTSUFFIX)
|
|||
py2_runme = $(SCRIPTPREFIX)$*$(PY2SCRIPTSUFFIX)
|
||||
py3_runme = $(SCRIPTPREFIX)$*$(PY3SCRIPTSUFFIX)
|
||||
|
||||
check_pep8 = \
|
||||
if [ -n "$(PEP8)" ]; then \
|
||||
$(PEP8) $(PEP8_FLAGS) $(SCRIPTPREFIX)$*.py;\
|
||||
fi
|
||||
ifneq (,$(PEP8))
|
||||
check_pep8 = $(PEP8) $(PEP8_FLAGS) $(SCRIPTPREFIX)$*.py
|
||||
|
||||
check_pep8_multi_cpp = \
|
||||
if [ -n "$(PEP8)" ]; then \
|
||||
for f in `cat $(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/$*.list` ; do \
|
||||
for f in `cat $(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/$*.list` ; do \
|
||||
$(PEP8) $(PEP8_FLAGS) $$f.py; \
|
||||
done \
|
||||
fi
|
||||
done
|
||||
endif
|
||||
|
||||
run_python = env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=.:$(srcdir):$$PYTHONPATH $(RUNTOOL) $(PYTHON) $(py_runme)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue