comparison Makefile @ 29004:145cdc45b0df stable

make: do assignment and export in a single statement This is portable between GNU and BSD make, whereas doing the export on its own line confuses BSD make.
author Augie Fackler <augie@google.com>
date Thu, 21 Apr 2016 10:10:48 -0400
parents c6b108555dfa
children 51f5fae84e43
comparison
equal deleted inserted replaced
29003:c6b108555dfa 29004:145cdc45b0df
2 # value wont get passed on to recursive make calls. You should instead 2 # value wont get passed on to recursive make calls. You should instead
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 PREFIX=/usr/local 7 export PREFIX=/usr/local
8 export PREFIX
9 PYTHON=python 8 PYTHON=python
10 $(eval HGROOT := $(shell pwd)) 9 $(eval HGROOT := $(shell pwd))
11 HGPYTHONS ?= $(HGROOT)/build/pythons 10 HGPYTHONS ?= $(HGROOT)/build/pythons
12 PURE= 11 PURE=
13 PYFILES:=$(shell find mercurial hgext doc -name '*.py') 12 PYFILES:=$(shell find mercurial hgext doc -name '*.py')