Fixed support for adding man page to debian package - to pass lintian!
This commit is contained in:
@@ -5,12 +5,15 @@ MN = bin/mn
|
|||||||
BIN = $(MN)
|
BIN = $(MN)
|
||||||
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
|
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
|
||||||
MNEXEC = mnexec
|
MNEXEC = mnexec
|
||||||
|
MANPAGE = mn.1
|
||||||
P8IGN = E251,E201,E302,E202
|
P8IGN = E251,E201,E302,E202
|
||||||
|
BINDIR = /usr/bin
|
||||||
|
MANDIR = /usr/share/man/man1
|
||||||
|
|
||||||
all: codecheck test
|
all: codecheck test
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build dist *.egg-info *.pyc $(MNEXEC)
|
rm -rf build dist *.egg-info *.pyc $(MNEXEC) $(MANPAGE)
|
||||||
|
|
||||||
codecheck: $(PYSRC)
|
codecheck: $(PYSRC)
|
||||||
-echo "Running code check"
|
-echo "Running code check"
|
||||||
@@ -27,17 +30,20 @@ test: $(MININET) $(TEST)
|
|||||||
-echo "Running tests"
|
-echo "Running tests"
|
||||||
mininet/test/test_nets.py
|
mininet/test/test_nets.py
|
||||||
|
|
||||||
install: $(MNEXEC)
|
install: $(MNEXEC) $(MANPAGE)
|
||||||
install $(MNEXEC) /usr/local/bin/
|
install $(MNEXEC) $(BINDIR)
|
||||||
|
install $(MANPAGE) $(MANDIR)
|
||||||
python setup.py install
|
python setup.py install
|
||||||
|
|
||||||
develop: $(MNEXEC)
|
develop: $(MNEXEC) $(MANPAGE)
|
||||||
install $(MNEXEC) /usr/local/bin/
|
# Perhaps we should link these as well
|
||||||
|
install $(MNEXEC) $(BINDIR)
|
||||||
|
install $(MANPAGE) $(MANDIR)
|
||||||
python setup.py develop
|
python setup.py develop
|
||||||
|
|
||||||
man: mn.1
|
man: $(MANPAGE)
|
||||||
|
|
||||||
mn.1: $(MN)
|
$(MANPAGE): $(MN)
|
||||||
help2man -N -n "create a Mininet network." --no-discard-stderr $(MN) \
|
help2man -N -n "create a Mininet network." --no-discard-stderr $(MN) \
|
||||||
-o $@
|
-o $@
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
*.1
|
||||||
Vendored
+1
@@ -4,5 +4,6 @@
|
|||||||
dh $@ --buildsystem=python_distutils --with=python2
|
dh $@ --buildsystem=python_distutils --with=python2
|
||||||
|
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
|
make man
|
||||||
make mnexec && cp mnexec bin/
|
make mnexec && cp mnexec bin/
|
||||||
dh_auto_build
|
dh_auto_build
|
||||||
|
|||||||
Reference in New Issue
Block a user