diff options
author | Arvind Sankar <[email protected]> | 2020-07-13 17:24:07 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-07-14 17:31:45 -0700 |
commit | e6c093dd94e7e6f221194e96095c0133662e3500 (patch) | |
tree | 93bd1e7ca3849df14f7beb6619aa1b93d063e5ef /config/zfs-build.m4 | |
parent | 1743c737f5ad6e2c6c429858b7c0f717ecb20954 (diff) |
Fix parallel make srpm
When building srpm using make -j, each of the recursive makes invoked to
build srpm-{dkms,kmod,utils} will build the dist target. This is both
unnecessary, and also has a very good chance of breaking when they race
trying to build gitrev.
Fix this by make dist a prerequisite of srpm-{dkms,kmod,utils} instead
of srpm-common, so that it will be done once before invoking the
recursive makes.
Also, gitrev is not really required for make dist, so instead of adding
it to BUILT_SOURCES, just add it as a prerequisite of the all target.
Mark the individual package targets as PHONY.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Arvind Sankar <[email protected]>
Closes #10564
Diffstat (limited to 'config/zfs-build.m4')
0 files changed, 0 insertions, 0 deletions