It's possible that mn_clean is a bit easier to read; mnclean may be easier to type, however. Added variables to Makefile so that source files are listed in a single location.
18 lines
328 B
Makefile
18 lines
328 B
Makefile
all: codecheck test
|
|
|
|
clean:
|
|
rm -rf build dist *.egg-info *.pyc
|
|
|
|
MININET = mininet/*.py
|
|
TEST = mininet/test/*.py
|
|
BIN = bin/mn bin/mnclean
|
|
PYSRC = $(MININET) $(TEST) $(BIN)
|
|
|
|
codecheck: $(PYSRC)
|
|
pyflakes $(PYSRC)
|
|
pylint --rcfile=.pylint $(PYSRC)
|
|
pep8 --ignore=E251 $(PYSRC)
|
|
|
|
test: $(MININET) $(TEST)
|
|
mininet/test/test_nets.py
|