Skip to content

Commit

Permalink
fix makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Medvedev committed May 28, 2019
1 parent a7c301f commit 476cccf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
PLATFORMS=darwin linux windows

default: deps build
deps:
@echo "==> Updating build dependencies..."
go get -u github.com/gocolly/colly/...

build:
@echo "==> Building for all platforms..."
GOOS=linux GOARCH=amd64 go build -o build/sicra
tar -czf build/sicra-linux-amd64.tar.gz build/sicra
$(foreach GOOS, $(PLATFORMS),\
$(shell GOOS=$(GOOS) GOARCH=amd64 go build -o build/$(GOOS)/sicra && \
tar -czf build/sicra-$(GOOS)-amd64.tar.gz build/$(GOOS)/sicra))

.PHONY: deps build

0 comments on commit 476cccf

Please sign in to comment.