Skip to content

Commit

Permalink
make: don't create a useless TAR (tape archive)
Browse files Browse the repository at this point in the history
  • Loading branch information
aktau committed May 13, 2017
1 parent 26d8f4f commit b61ce1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ UNIX_EXECUTABLES := \
WIN_EXECUTABLES := \
windows/amd64/$(EXECUTABLE).exe

COMPRESSED_EXECUTABLES=$(UNIX_EXECUTABLES:%=%.tar.bz2) $(WIN_EXECUTABLES:%.exe=%.zip)
COMPRESSED_EXECUTABLES=$(UNIX_EXECUTABLES:%=%.bz2) $(WIN_EXECUTABLES:%.exe=%.zip)
COMPRESSED_EXECUTABLE_TARGETS=$(COMPRESSED_EXECUTABLES:%=bin/%)

UPLOAD_CMD = bin/tmp/$(EXECUTABLE) upload -u $(USER) -r $(EXECUTABLE) -t $(LAST_TAG) -n $(subst /,-,$(FILE)) -f bin/$(FILE)
Expand Down Expand Up @@ -49,8 +49,8 @@ bin/windows/amd64/$(EXECUTABLE).exe:

# compressed artifacts, makes a huge difference (Go executable is ~9MB,
# after compressing ~2MB)
%.tar.bz2: %
tar -jcvf "$<.tar.bz2" "$<"
%.bz2: %
bzip2 -c < "$<" > "$@"
%.zip: %.exe
zip "$@" "$<"

Expand Down

0 comments on commit b61ce1a

Please sign in to comment.