Mercurial > hg
comparison Makefile @ 42058:ec7b478f1bf8
packaging: allow to run make with python3
Use "?=", otherwise the variable cannot be set from environment.
author | Philippe Pepiot <philippe.pepiot@logilab.fr> |
---|---|
date | Thu, 04 Apr 2019 19:06:48 +0200 |
parents | 462a26756f70 |
children | 7521e6d18057 |
comparison
equal
deleted
inserted
replaced
42057:566daffc607d | 42058:ec7b478f1bf8 |
---|---|
3 # override the variable on the command like: | 3 # override the variable on the command like: |
4 # | 4 # |
5 # % make PREFIX=/opt/ install | 5 # % make PREFIX=/opt/ install |
6 | 6 |
7 export PREFIX=/usr/local | 7 export PREFIX=/usr/local |
8 PYTHON=python | 8 PYTHON?=python |
9 $(eval HGROOT := $(shell pwd)) | 9 $(eval HGROOT := $(shell pwd)) |
10 HGPYTHONS ?= $(HGROOT)/build/pythons | 10 HGPYTHONS ?= $(HGROOT)/build/pythons |
11 PURE= | 11 PURE= |
12 PYFILESCMD=find mercurial hgext doc -name '*.py' | 12 PYFILESCMD=find mercurial hgext doc -name '*.py' |
13 PYFILES:=$(shell $(PYFILESCMD)) | 13 PYFILES:=$(shell $(PYFILESCMD)) |