make: use shell-command assignment instead of $(eval ...) stable
authorAugie Fackler <augie@google.com>
Thu, 21 Apr 2016 10:11:20 -0400
branchstable
changeset 29005 51f5fae84e43
parent 29004 145cdc45b0df
child 29006 be02dfe41ae2
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.
Makefile
--- a/Makefile	Thu Apr 21 10:10:48 2016 -0400
+++ b/Makefile	Thu Apr 21 10:11:20 2016 -0400
@@ -6,7 +6,7 @@
 
 export PREFIX=/usr/local
 PYTHON=python
-$(eval HGROOT := $(shell pwd))
+HGROOT != pwd
 HGPYTHONS ?= $(HGROOT)/build/pythons
 PURE=
 PYFILES:=$(shell find mercurial hgext doc -name '*.py')