diff options
author | 2007-11-24 15:47:23 +0000 | |
---|---|---|
committer | 2007-11-24 15:47:23 +0000 | |
commit | d420f2050419e8222dbb1c237cf32f5c2d2df868 (patch) | |
tree | 682c308e2fef04c3c11084b2051df6b00db6ef7c | |
parent | parallel make fixes: $(YDR) produces several files, we need a timestamp. (diff) | |
download | wireguard-openbsd-d420f2050419e8222dbb1c237cf32f5c2d2df868.tar.xz wireguard-openbsd-d420f2050419e8222dbb1c237cf32f5c2d2df868.zip |
fix race condition, as reported by naddy@.
On a sufficiently fast machine, the subdirs and the ${TARGETS} will be
run simultaneously, and will fail.
Since TARGETS can be empty, we need an extra dummy-target to make sure
make does something sensible (this avoids bsd-specific constructs).
-rw-r--r-- | usr.sbin/bind/make/rules.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/bind/make/rules.in b/usr.sbin/bind/make/rules.in index 2db8442d47a..09f5b9da2b8 100644 --- a/usr.sbin/bind/make/rules.in +++ b/usr.sbin/bind/make/rules.in @@ -47,7 +47,12 @@ top_builddir = @BIND9_TOP_BUILDDIR@ ### Makefile may define: ### TARGETS -all: subdirs ${TARGETS} +all: subdirs + @exec ${MAKE} ${TARGETS} dummy-target + +dummy-target: + +.PHONY: dummy-target ### ### Subdirectories |