Skip to content
Snippets Groups Projects
Makefile 895 B
Newer Older
MININET = mininet/*.py
TEST = mininet/test/*.py
EXAMPLES = examples/*.py
MN = bin/mn
BIN = $(MN)
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
Bob Lantz's avatar
Bob Lantz committed
P8IGN = E251,E201,E302,E202
all: codecheck test

clean:
	rm -rf build dist *.egg-info *.pyc $(MNEXEC)

	pyflakes $(PYSRC)
	pylint --rcfile=.pylint $(PYSRC)
	pep8 --repeat --ignore=$(P8IGN) $(PYSRC)
errcheck: $(PYSRC)
	-echo "Running check for errors only"
	pyflakes $(PYSRC)
	pylint -E --rcfile=.pylint $(PYSRC)

	mininet/test/test_nets.py
install: $(MNEXEC)
	install $(MNEXEC) /usr/local/bin/
	python setup.py install

develop: $(MNEXEC)
	install $(MNEXEC) /usr/local/bin/
	python setup.py develop

man: mn.1

mn.1: $(MN)
	help2man -N -n "create a Mininet network." --no-discard-stderr $(MN) \
Bob Lantz's avatar
Bob Lantz committed
    -o $@