Skip to content

Commit 44c10bb

Browse files
authored
build: Fix parallelism of make -j build (#5438)
1 parent 6b6eac2 commit 44c10bb

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Makefile

+8-5
Original file line numberDiff line numberDiff line change
@@ -101,27 +101,30 @@ build-fat build-full build: $(CODER_FAT_BINARIES)
101101
release: $(CODER_FAT_BINARIES) $(CODER_ALL_ARCHIVES) $(CODER_ALL_PACKAGES) $(CODER_ARCH_IMAGES) build/coder_helm_$(VERSION).tgz
102102
.PHONY: release
103103

104-
build/coder-slim_$(VERSION)_checksums.sha1 site/out/bin/coder.sha1: $(CODER_SLIM_BINARIES)
104+
build/coder-slim_$(VERSION)_checksums.sha1: site/out/bin/coder.sha1
105+
cp "$<" "$@"
106+
107+
site/out/bin/coder.sha1: $(CODER_SLIM_BINARIES)
105108
pushd ./site/out/bin
106109
openssl dgst -r -sha1 coder-* | tee coder.sha1
107110
popd
108111

109-
cp "site/out/bin/coder.sha1" "build/coder-slim_$(VERSION)_checksums.sha1"
110-
111112
build/coder-slim_$(VERSION).tar: build/coder-slim_$(VERSION)_checksums.sha1 $(CODER_SLIM_BINARIES)
112113
pushd ./site/out/bin
113114
tar cf "../../../build/$(@F)" coder-*
114115
popd
115116

116-
build/coder-slim_$(VERSION).tar.zst site/out/bin/coder.tar.zst: build/coder-slim_$(VERSION).tar
117+
site/out/bin/coder.tar.zst: build/coder-slim_$(VERSION).tar.zst
118+
cp "$<" "$@"
119+
120+
build/coder-slim_$(VERSION).tar.zst: build/coder-slim_$(VERSION).tar
117121
zstd $(ZSTDFLAGS) \
118122
--force \
119123
--long \
120124
--no-progress \
121125
-o "build/coder-slim_$(VERSION).tar.zst" \
122126
"build/coder-slim_$(VERSION).tar"
123127

124-
cp "build/coder-slim_$(VERSION).tar.zst" "site/out/bin/coder.tar.zst"
125128
# delete the uncompressed binaries from the embedded dir
126129
rm site/out/bin/coder-*
127130

0 commit comments

Comments
 (0)