The $(objpfx)bench-%.c rule writes its output into $(objpfx) without
ensuring that directory exists. Serial builds happened to satisfy
that ordering, with parallel builds the generation recipe can
run before the directory is created, failing with:
cannot create .../benchtests/bench-xxx.c-tmp: Directory nonexistent
Add the standard $(make-target-directory).
Reviewed-by: Florian Weimer <fweimer@redhat.com>
$(bench-link-targets): LDFLAGS += $(link-bench-bind-now)
$(objpfx)bench-%.c: %-inputs $(bench-deps)
+ $(make-target-directory)
{ if [ -n "$($*-INCLUDE)" ]; then \
cat $($*-INCLUDE); \
fi; \