Add support for generating man page from mn --help.

This commit is contained in:
Bob Lantz
2012-07-01 23:23:56 -07:00
parent 0809105bed
commit f2e7884ade
2 changed files with 18 additions and 3 deletions
+9 -2
View File
@@ -1,7 +1,8 @@
MININET = mininet/*.py
TEST = mininet/test/*.py
EXAMPLES = examples/*.py
BIN = bin/mn
MN = bin/mn
BIN = $(MN)
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
MNEXEC = mnexec
P8IGN = E251,E201,E302,E202
@@ -34,6 +35,12 @@ develop: $(MNEXEC)
install $(MNEXEC) /usr/local/bin/
python setup.py develop
doc:
man: mn.1
mn.1: $(MN)
help2man -N -n "create a Mininet network." --no-discard-stderr $(MN) \
> mn.1
doc: man
doxygen doxygen.cfg