Statistics
| Branch: | Tag: | Revision:

mininet / Makefile @ e6d8e974

History | View | Annotate | Download (665 Bytes)

1
all: codecheck test
2

    
3
clean:
4
	rm -rf build dist *.egg-info *.pyc mnexec bin/mnexec
5

    
6
MININET = mininet/*.py
7
TEST = mininet/test/*.py
8
EXAMPLES = examples/*.py
9
BIN = bin/mn
10
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
11

    
12
P8IGN = E251,E201,E302,E202
13

    
14
codecheck: $(PYSRC)
15
	-echo "Running code check"
16
	pyflakes $(PYSRC)
17
	pylint --rcfile=.pylint $(PYSRC)
18
	pep8 --repeat --ignore=$(P8IGN) $(PYSRC)
19

    
20
errcheck: $(PYSRC)
21
	-echo "Running check for errors only"
22
	pyflakes $(PYSRC)
23
	pylint -E --rcfile=.pylint $(PYSRC)
24

    
25
test: $(MININET) $(TEST)
26
	-echo "Running tests"
27
	mininet/test/test_nets.py
28

    
29
install: mnexec
30
	cp mnexec bin/
31
	python setup.py install
32

    
33
doc:
34
	doxygen doxygen.cfg
35