# HG changeset patch # User Philippe Pepiot # Date 1554397608 -7200 # Node ID ec7b478f1bf8374ffaabf82d3dd1af55b9720d2d # Parent 566daffc607d63922c7696e9928ec1073823d815 packaging: allow to run make with python3 Use "?=", otherwise the variable cannot be set from environment. diff -r 566daffc607d -r ec7b478f1bf8 Makefile --- a/Makefile Wed Apr 03 11:21:27 2019 -0700 +++ b/Makefile Thu Apr 04 19:06:48 2019 +0200 @@ -5,7 +5,7 @@ # % make PREFIX=/opt/ install export PREFIX=/usr/local -PYTHON=python +PYTHON?=python $(eval HGROOT := $(shell pwd)) HGPYTHONS ?= $(HGROOT)/build/pythons PURE= diff -r 566daffc607d -r ec7b478f1bf8 doc/Makefile --- a/doc/Makefile Wed Apr 03 11:21:27 2019 -0700 +++ b/doc/Makefile Thu Apr 04 19:06:48 2019 +0200 @@ -6,7 +6,7 @@ PREFIX=/usr/local MANDIR=$(PREFIX)/share/man INSTALL=install -c -m 644 -PYTHON=python +PYTHON?=python RSTARGS= export HGENCODING=UTF-8