Permalink
Browse files

Add PYTHON variable for python2/python3 make install

  • Loading branch information...
lantz committed Jul 26, 2018
1 parent f98154a commit 2ac4f92af38a7dd104a5a0171ab8653a0638eb62
Showing with 4 additions and 3 deletions.
  1. +4 −3 Makefile
@@ -2,7 +2,8 @@ MININET = mininet/*.py
TEST = mininet/test/*.py
EXAMPLES = mininet/examples/*.py
MN = bin/mn
PYMN = python -B bin/mn
PYTHON ?= python
PYMN = $(PYTHON) -B bin/mn
BIN = $(MN)
PYSRC = $(MININET) $(TEST) $(EXAMPLES) $(BIN)
MNEXEC = mnexec
@@ -54,13 +55,13 @@ install-manpages: $(MANPAGES)
install -D -t $(MANDIR) $(MANPAGES)
install: install-mnexec install-manpages
python setup.py install
$(PYTHON) setup.py install
develop: $(MNEXEC) $(MANPAGES)
# Perhaps we should link these as well
install $(MNEXEC) $(BINDIR)
install $(MANPAGES) $(MANDIR)
python setup.py develop
$(PYTHON) setup.py develop
man: $(MANPAGES)

0 comments on commit 2ac4f92

Please sign in to comment.