Statistics
| Branch: | Tag: | Revision:

mininet / Makefile @ ae2ede79

History | View | Annotate | Download (774 Bytes)

1
MININET = mininet/*.py
2
TEST = mininet/test/*.py
3
EXAMPLES = examples/*.py
4
BIN = bin/mn
5
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
6
MNEXEC = mnexec
7
P8IGN = E251,E201,E302,E202
8

    
9
all: codecheck test
10

    
11
clean:
12
	rm -rf build dist *.egg-info *.pyc $(MNEXEC)
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
	install $(MNEXEC) /usr/local/bin/
31
	python setup.py install
32

    
33
develop: $(MNEXEC)
34
	install $(MNEXEC) /usr/local/bin/
35
	python setup.py develop
36

    
37
doc:
38
	doxygen doxygen.cfg
39