Permalink
Browse files

don't generate .pyc files on some makefile targets

  • Loading branch information...
1 parent 2cb1759 commit cdbbb5b7a6f8b75aa5d41a7821ad9df7f9a8f4a2 @thinred thinred committed Jul 29, 2015
Showing with 3 additions and 2 deletions.
  1. +3 −2 Makefile
View
@@ -2,6 +2,7 @@ MININET = mininet/*.py
TEST = mininet/test/*.py
EXAMPLES = mininet/examples/*.py
MN = bin/mn
+PYMN = python -B bin/mn
BIN = $(MN)
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
MNEXEC = mnexec
@@ -43,7 +44,7 @@ slowtest: $(MININET)
mininet/examples/test/runner.py -v
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) $(BINDIR)
@@ -60,7 +61,7 @@ man: $(MANPAGES)
mn.1: $(MN)
PYTHONPATH=. help2man -N -n "create a Mininet network." \
- --no-discard-stderr $< -o $@
+ --no-discard-stderr "$(PYMN)" -o $@
mnexec.1: mnexec
help2man -N -n "execution utility for Mininet." \

0 comments on commit cdbbb5b

Please sign in to comment.