diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2020-01-10 18:24:17 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2020-01-10 18:24:17 +0000 |
commit | 1171c633fb097a19e1da87128604190bc6d27341 (patch) | |
tree | ee7dda0a82c7baceb26ae6f20aee34678b0a773e /sys/amd64/linux32 | |
parent | 554f71e2b336668acf07527ef09bc11220eaf1a5 (diff) | |
download | src-1171c633fb097a19e1da87128604190bc6d27341.tar.gz src-1171c633fb097a19e1da87128604190bc6d27341.zip |
Set .ORDER for makesyscalls generated files
When either makesyscalls.lua or syscalls.master changes, all of the
${GENERATED} targets are now out-of-date. With make jobs > 1, this means we
will run the makesyscalls script in parallel for the same ABI, generating
the same set of output files.
Prior to r356603 , there is a large window for interlacing output for some
of the generated files that we were generating in-place rather than staging
in a temp dir. After that, we still should't need to run the script more
than once per-ABI as the first invocation should update all of them. Add
.ORDER to do so cleanly.
Reviewed by: brooks
Discussed with: sjg
Differential Revision: https://reviews.freebsd.org/D23099
Notes
Notes:
svn path=/head/; revision=356604
Diffstat (limited to 'sys/amd64/linux32')
-rw-r--r-- | sys/amd64/linux32/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/linux32/Makefile b/sys/amd64/linux32/Makefile index 8de130c6dffe..e176af809c3a 100644 --- a/sys/amd64/linux32/Makefile +++ b/sys/amd64/linux32/Makefile @@ -19,6 +19,9 @@ GENERATED= linux32_proto.h \ all: @echo "make sysent only" +# We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than +# potentially once for each ${GENERATED} file. +.ORDER: ${GENERATED} sysent: ${GENERATED} ${GENERATED}: ${MAKESYSCALLS} ${SRCS} |