[PATCH 2 of 3 bsdmake stable?] Makefile: do assignment and export in a single statement
Augie Fackler
raf at durin42.com
Thu Apr 21 11:30:05 EDT 2016
# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1461247848 14400
# Thu Apr 21 10:10:48 2016 -0400
# Branch stable
# Node ID d798163ea54318407c4a86ae65ec94774a19eb0a
# Parent 15b4ba1151e581c1e4b9833ce96a57bb6c468d9f
Makefile: 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.
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -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
More information about the Mercurial-devel
mailing list