Statistics
| Branch: | Tag: | Revision:

mininet / Makefile @ 7fe84796

History | View | Annotate | Download (895 Bytes)

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

    
10
all: codecheck test
11

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

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

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

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

    
30
install: $(MNEXEC)
31
	install $(MNEXEC) /usr/local/bin/
32
	python setup.py install
33

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

    
38
man: mn.1
39

    
40
mn.1: $(MN)
41
	help2man -N -n "create a Mininet network." --no-discard-stderr $(MN) \
42
    -o $@
43

    
44
doc: man
45
	doxygen doxygen.cfg
46