Revision d85a58fe Makefile

View differences:

Makefile
5 5
BIN = $(MN)
6 6
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
7 7
MNEXEC = mnexec
8
MANPAGE = mn.1
8
MANPAGES = mn.1 mnexec.1
9 9
P8IGN = E251,E201,E302,E202
10 10
BINDIR = /usr/bin
11 11
MANDIR = /usr/share/man/man1
......
13 13
all: codecheck test
14 14

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

  
18 18
codecheck: $(PYSRC)
19 19
	-echo "Running code check"
......
41 41
	install $(MANPAGE) $(MANDIR)
42 42
	python setup.py develop
43 43

  
44
man: $(MANPAGE)
44
man: $(MANPAGES)
45 45

  
46
$(MANPAGE): $(MN)
46
mn.1: $(MN)
47 47
	PYTHONPATH=. help2man -N -n "create a Mininet network." \
48
    --no-discard-stderr $(MN) \
49
    -o $@
48
	--no-discard-stderr $< -o $@
49

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

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

  
51 57
doc: man
52 58
	doxygen doxygen.cfg

Also available in: Unified diff