Revision 31015ef5 Makefile

View differences:

Makefile
9 9
P8IGN = E251,E201,E302,E202
10 10
BINDIR = /usr/bin
11 11
MANDIR = /usr/share/man/man1
12
DOCDIRS = doc/html doc/latex
13
PDF = doc/latex/refman.pdf
12 14

  
13 15
all: codecheck test
14 16

  
15 17
clean:
16
	rm -rf build dist *.egg-info *.pyc $(MNEXEC) $(MANPAGES)
18
	rm -rf build dist *.egg-info *.pyc $(MNEXEC) $(MANPAGES) $(DOCDIRS)
17 19

  
18 20
codecheck: $(PYSRC)
19 21
	-echo "Running code check"
......
31 33
	-echo "Running tests"
32 34
	mininet/test/test_nets.py
33 35

  
36
mnexec: mnexec.c $(MN) mininet/net.py
37
	cc $(CFLAGS) $(LDFLAGS) -DVERSION=\"`PYTHONPATH=. $(MN) --version`\" $< -o $@
38

  
34 39
install: $(MNEXEC) $(MANPAGES)
35 40
	install $(MNEXEC) $(BINDIR)
36 41
	install $(MANPAGES) $(MANDIR)
......
48 53
	PYTHONPATH=. help2man -N -n "create a Mininet network." \
49 54
	--no-discard-stderr $< -o $@
50 55

  
51
mnexec: mnexec.c $(MN) mininet/net.py
52
	cc $(CFLAGS) $(LDFLAGS) -DVERSION=\"`PYTHONPATH=. $(MN) --version`\" $< -o $@
53

  
54 56
mnexec.1: mnexec
55 57
	help2man -N -n "execution utility for Mininet." \
56 58
	-h "-h" -v "-v" --no-discard-stderr ./$< -o $@ 
57 59

  
58
doc: man
59
	doxygen doxygen.cfg
60
.PHONY: doc
60 61

  
62
doc: man
63
	doxygen doc/doxygen.cfg
64
	make -C doc/latex

Also available in: Unified diff