Makefile: build wasm files only once (#4005)

This commit is contained in:
Stefan Benten 2020-12-18 01:59:27 +01:00 committed by GitHub
parent 2437d5b171
commit e1456bc53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,7 @@ binary:
scripts/release.sh build $(EXTRA_ARGS) -o release/${TAG}/$(COMPONENT)_${GOOS}_${GOARCH}${FILEEXT} \ scripts/release.sh build $(EXTRA_ARGS) -o release/${TAG}/$(COMPONENT)_${GOOS}_${GOARCH}${FILEEXT} \
storj.io/storj/cmd/${COMPONENT} storj.io/storj/cmd/${COMPONENT}
if [ "${COMPONENT}" = "satellite" ] && [ "${GOARCH}" = "amd64" ]; \ if [ "${COMPONENT}" = "satellite" ] && [ "${GOOS}" = "linux" ] && [ "${GOARCH}" = "amd64" ]; \
then \ then \
echo "Building wasm code"; \ echo "Building wasm code"; \
$(MAKE) satellite-wasm; \ $(MAKE) satellite-wasm; \