Skip to content

Commit

Permalink
Add gox_with_zip
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Jun 9, 2019
1 parent 953707e commit 8d8a257
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ bin/$(NAME): $(SRCS)
gox:
gox -ldflags=$(LDFLAGS) -output="bin/gitpanda_{{.OS}}_{{.Arch}}"

.PHONY: zip
zip:
cd bin ; \
for file in *; do \
zip $${file}.zip $${file} ; \
done

.PHONY: gox_with_zip
gox_with_zip: clean gox zip

.PHONY: clean
clean:
rm -rf bin/*
Expand Down

0 comments on commit 8d8a257

Please sign in to comment.