Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 2a79584

Browse files
author
Tuxx
committed
Package only the binaries that are built.
1 parent d1b1b22 commit 2a79584

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ native: check-go | $(BIN)
3636

3737
package: | $(DIST)
3838
@for arch in $(ARCHES); do \
39-
tar -czvf $(DIST)/$(APP)-linux-$$arch.tar.gz -C $(BIN) $(APP)-linux-$$arch ; \
39+
if [ -f $(BIN)/$(APP)-linux-$$arch ]; then \
40+
tar -czvf $(DIST)/$(APP)-linux-$$arch.tar.gz -C $(BIN) $(APP)-linux-$$arch; \
41+
fi \
4042
done
4143
@if [ -f $(BIN)/$(APP)-native ]; then \
42-
tar -czvf $(DIST)/$(APP)-native.tar.gz -C $(BIN) $(APP)-native ; \
44+
tar -czvf $(DIST)/$(APP)-native.tar.gz -C $(BIN) $(APP)-native; \
4345
fi
4446

4547
install: native

0 commit comments

Comments
 (0)