Merge pull request #541 from thinred/master
don't generate .pyc files on some makefile targets
This commit is contained in:
@@ -2,6 +2,7 @@ MININET = mininet/*.py
|
|||||||
TEST = mininet/test/*.py
|
TEST = mininet/test/*.py
|
||||||
EXAMPLES = mininet/examples/*.py
|
EXAMPLES = mininet/examples/*.py
|
||||||
MN = bin/mn
|
MN = bin/mn
|
||||||
|
PYMN = python -B bin/mn
|
||||||
BIN = $(MN)
|
BIN = $(MN)
|
||||||
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
|
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
|
||||||
MNEXEC = mnexec
|
MNEXEC = mnexec
|
||||||
@@ -43,7 +44,7 @@ slowtest: $(MININET)
|
|||||||
mininet/examples/test/runner.py -v
|
mininet/examples/test/runner.py -v
|
||||||
|
|
||||||
mnexec: mnexec.c $(MN) mininet/net.py
|
mnexec: mnexec.c $(MN) mininet/net.py
|
||||||
cc $(CFLAGS) $(LDFLAGS) -DVERSION=\"`PYTHONPATH=. $(MN) --version`\" $< -o $@
|
cc $(CFLAGS) $(LDFLAGS) -DVERSION=\"`PYTHONPATH=. $(PYMN) --version`\" $< -o $@
|
||||||
|
|
||||||
install: $(MNEXEC) $(MANPAGES)
|
install: $(MNEXEC) $(MANPAGES)
|
||||||
install $(MNEXEC) $(BINDIR)
|
install $(MNEXEC) $(BINDIR)
|
||||||
@@ -60,7 +61,7 @@ man: $(MANPAGES)
|
|||||||
|
|
||||||
mn.1: $(MN)
|
mn.1: $(MN)
|
||||||
PYTHONPATH=. help2man -N -n "create a Mininet network." \
|
PYTHONPATH=. help2man -N -n "create a Mininet network." \
|
||||||
--no-discard-stderr $< -o $@
|
--no-discard-stderr "$(PYMN)" -o $@
|
||||||
|
|
||||||
mnexec.1: mnexec
|
mnexec.1: mnexec
|
||||||
help2man -N -n "execution utility for Mininet." \
|
help2man -N -n "execution utility for Mininet." \
|
||||||
|
|||||||
Reference in New Issue
Block a user