aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2022-08-15 00:48:36 -0700
committerAndi Kleen <ak@linux.intel.com>2022-08-15 00:48:36 -0700
commit4e3e8fe76f4ebcb8d75a63b7eb71268d0db88cee (patch)
treeb564ead90f4cd260f73a86fa85693c14c5d800f8
parent523560f1770d25dddaceebcd4e8714bc4ddd204c (diff)
downloadmcelog-4e3e8fe76f4ebcb8d75a63b7eb71268d0db88cee.tar.gz
Fix generation of cputype filesv188
Use a grouped rule to indicate to make that the same command generates both files, instead of rerunning the rule multiple times which causes all kind of races in parallel builds. Also use the correct input dependency for the source file Thanks to Ben Kohler for persistent reports Fixes #106
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 55339ee..0283c0a 100644
--- a/Makefile
+++ b/Makefile
@@ -106,7 +106,7 @@ version.tmp: FORCE
version.c: version.tmp
cmp version.tmp version.c || mv version.tmp version.c
-cputype.tmp lookup_intel_cputype.tmp: FORCE
+cputype.tmp lookup_intel_cputype.tmp &: cputype.table
./mkcputype
cputype.h: cputype.tmp