comparison Makefile @ 29005:51f5fae84e43 stable

make: use shell-command assignment instead of $(eval ...) This is portable between BSD and GNU make. As of this change, our Makefile appears to work in both BSD and GNU make, with the caveat that the test-% and testpy-% wildcard rules don't work on BSD make. That said, this still seems worthwhile because it lets the buildbots work more consistently across platforms.
author Augie Fackler <augie@google.com>
date Thu, 21 Apr 2016 10:11:20 -0400
parents 145cdc45b0df
children c05cc1b95848
comparison
equal deleted inserted replaced
29004:145cdc45b0df 29005:51f5fae84e43
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 HGROOT != pwd
10 HGPYTHONS ?= $(HGROOT)/build/pythons 10 HGPYTHONS ?= $(HGROOT)/build/pythons
11 PURE= 11 PURE=
12 PYFILES:=$(shell find mercurial hgext doc -name '*.py') 12 PYFILES:=$(shell find mercurial hgext doc -name '*.py')
13 DOCFILES=mercurial/help/*.txt 13 DOCFILES=mercurial/help/*.txt
14 export LANGUAGE=C 14 export LANGUAGE=C