diff Makefile @ 6132:7da0f8128d90 stable

makefile: cleaned up the last hardcoded python calls For consistency, and also to have `make deb-prepare` work out of the box on Debian ≥ 11.
author Georges Racinet <georges.racinet@octobus.net>
date Fri, 18 Feb 2022 11:55:40 +0100
parents a86c2682f608
children a80ed2e4745b
line wrap: on
line diff
--- a/Makefile	Thu Jan 13 22:27:37 2022 +0300
+++ b/Makefile	Fri Feb 18 11:55:40 2022 +0100
@@ -1,5 +1,5 @@
 PYTHON ?= python3
-VERSION = $(shell python setup.py --version)
+VERSION = $(shell $(PYTHON) setup.py --version)
 TESTFLAGS ?= $(shell echo $$HGTESTFLAGS)
 HGTESTS = $(HGROOT)/tests
 
@@ -15,7 +15,7 @@
 
 .PHONY: deb-prepare
 deb-prepare:
-	python setup.py sdist --dist-dir ..
+	$(PYTHON) setup.py sdist --dist-dir ..
 	mv -f ../hg-evolve-$(VERSION).tar.gz ../mercurial-evolve_$(VERSION).orig.tar.gz
 	tar xf ../mercurial-evolve_$(VERSION).orig.tar.gz
 	rm -rf ../mercurial-evolve_$(VERSION).orig