Module Name: src
Committed By: martin
Date: Thu Jan 10 10:04:43 UTC 2019
Modified Files:
src/external/bsd/acpica/bin/iasl: Makefile
Log Message:
Use the make pid when naming the temporary file to create aslcompilerparse.y,
so tow parallel make instances won't step on each others toe.
Pointed out by Christos.
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/external/bsd/acpica/bin/iasl/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/acpica/bin/iasl/Makefile
diff -u src/external/bsd/acpica/bin/iasl/Makefile:1.23 src/external/bsd/acpica/bin/iasl/Makefile:1.24
--- src/external/bsd/acpica/bin/iasl/Makefile:1.23 Wed Jan 9 09:27:29 2019
+++ src/external/bsd/acpica/bin/iasl/Makefile Thu Jan 10 10:04:43 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2019/01/09 09:27:29 martin Exp $
+# $NetBSD: Makefile,v 1.24 2019/01/10 10:04:43 martin Exp $
.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "aarch64")
PROG= iasl
@@ -277,8 +277,8 @@ aslparser.y: asltokens.y asltypes.y aslr
YPREFIX.aslcompilerparse.y=AslCompiler
aslcompilerparse.y: aslparser.y
- ${TOOL_M4} -P -I${TOPDIR} ${.ALLSRC} > ${.TARGET}.tmp \
- && mv ${.TARGET}.tmp ${.TARGET}
+ ${TOOL_M4} -P -I${TOPDIR} ${.ALLSRC} > ${.TARGET}.tmp.${.MAKE.PID} \
+ && mv ${.TARGET}.tmp.${.MAKE.PID} ${.TARGET}
aslcompiler.y.h: aslcompilerparse.h
ln -sf ${.ALLSRC} ${.TARGET}