# HG changeset patch # User Augie Fackler # Date 1461247880 14400 # Node ID 51f5fae84e4381761c43c6156b3d6caf495529f8 # Parent 145cdc45b0df7b279ccd936db22264e807fe0718 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. diff -r 145cdc45b0df -r 51f5fae84e43 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')