Skip to content

Commit

Permalink
fix: Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltdev committed Aug 5, 2021
1 parent 10100fb commit 7446383
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@ clean:
rm bin/$(_NAME)*

compile: clean
for os in darwin linux; do \
@for os in darwin linux; do \
for arch in amd64 arm64; do \
cd bin ; \
GOOS=$$os GOARCH=$${arch} go build -o $(_NAME)-$$os-$${arch} ../; \
tar czf $(_NAME)-$$os-$${arch}.tar.gz $(_NAME)-$$os-$${arch}; \
sha256sum $(_NAME)-$$os-$${arch}.tar.gz > $(_NAME)-$$os-$${arch}.tar.gz.sha256; \
echo $$os $${arch} compiled; \
cd - ; \
cd ../ ; \
done \
done

brew-sha256:
for os in darwin linux; do \
@for os in darwin linux; do \
for arch in amd64 arm64; do \
cd bin ; \
echo "\"$$os-$${arch}\" => \"$$(sha256sum $(_NAME)-$$os-$${arch}.tar.gz | egrep -o '^\w+')\""; \
cd ../ ; \
done \
done

0 comments on commit 7446383

Please sign in to comment.