Skip to content

Commit

Permalink
Makefile: Use PYTHON2_CMD again, by request.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohannes committed Apr 29, 2017
1 parent 69e492e commit 7ccb301
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PYTHON2 = python2
PYTHON2_CMD ?= python2
PYTEST = py.test

PREFIX = /usr/local
Expand Down Expand Up @@ -35,8 +35,8 @@ all_no_locale: compile manpage
@echo "Ready to install..."

compile:
$(PYTHON2) -m compileall -q xl xlgui
-$(PYTHON2) -O -m compileall -q xl xlgui
$(PYTHON2_CMD) -m compileall -q xl xlgui
-$(PYTHON2_CMD) -O -m compileall -q xl xlgui
$(MAKE) -C plugins compile

make-install-dirs:
Expand Down Expand Up @@ -149,7 +149,7 @@ install-target: make-install-dirs
-install -m 644 exaile.bash-completion $(DESTDIR)$(BASHCOMPDIR)/exaile
install -m 644 data/config/settings.ini $(EXAILECONFDIR)
tools/generate-launcher "$(DESTDIR)" "$(PREFIX)" "$(EPREFIX)" "$(LIBINSTALLDIR)" \
"$(PYTHON2)" && \
"$(PYTHON2_CMD)" && \
chmod 755 $(EXAILEBINDIR)/exaile
sed "s|\@bindir\@|$(EPREFIX)/bin|" data/org.exaile.Exaile.service.in > \
$(DESTDIR)$(DATADIR)/dbus-1/services/org.exaile.Exaile.service
Expand Down Expand Up @@ -177,7 +177,7 @@ manpage:
| gzip -9 > exaile.1.gz

completion:
$(PYTHON2) tools/generate-completion.py > exaile.bash-completion
$(PYTHON2_CMD) tools/generate-completion.py > exaile.bash-completion

clean:
-find . -name "*.~[0-9]~" -exec rm -f {} \;
Expand Down

0 comments on commit 7ccb301

Please sign in to comment.