make: do assignment and export in a single statement stable
authorAugie Fackler <augie@google.com>
Thu, 21 Apr 2016 10:10:48 -0400
branchstable
changeset 29004 145cdc45b0df
parent 29003 c6b108555dfa
child 29005 51f5fae84e43
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.
Makefile
--- a/Makefile	Thu Apr 21 10:05:14 2016 -0400
+++ b/Makefile	Thu Apr 21 10:10:48 2016 -0400
@@ -4,8 +4,7 @@
 #
 # % make PREFIX=/opt/ install
 
-PREFIX=/usr/local
-export PREFIX
+export PREFIX=/usr/local
 PYTHON=python
 $(eval HGROOT := $(shell pwd))
 HGPYTHONS ?= $(HGROOT)/build/pythons