Use install(1) to install mnexec so that setup.py develop works.

This commit is contained in:
Bob Lantz
2012-03-02 20:34:56 -08:00
parent 03dd914edc
commit ee222055f1
2 changed files with 13 additions and 10 deletions
+12 -8
View File
@@ -1,16 +1,16 @@
all: codecheck test
clean:
rm -rf build dist *.egg-info *.pyc mnexec bin/mnexec
MININET = mininet/*.py
TEST = mininet/test/*.py
EXAMPLES = examples/*.py
BIN = bin/mn
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
MNEXEC = mnexec
P8IGN = E251,E201,E302,E202
all: codecheck test
clean:
rm -rf build dist *.egg-info *.pyc $(MNEXEC)
codecheck: $(PYSRC)
-echo "Running code check"
pyflakes $(PYSRC)
@@ -26,10 +26,14 @@ test: $(MININET) $(TEST)
-echo "Running tests"
mininet/test/test_nets.py
install: mnexec
cp mnexec bin/
install: $(MNEXEC)
install $(MNEXEC) /usr/local/bin/
python setup.py install
develop: $(MNEXEC)
install $(MNEXEC) /usr/local/bin/
python setup.py develop
doc:
doxygen doxygen.cfg