Skip to content

Commit a7c301f

Browse files
author
Eugene Medvedev
committed
fix makefile
1 parent 8debe3b commit a7c301f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
2-
BINARY=sicra
3-
PLATFORMS=darwin linux windows
4-
ARCHITECTURES=386 amd64
5-
61
default: deps build
72
deps:
83
@echo "==> Updating build dependencies..."
94
go get -u github.com/gocolly/colly/...
105

116
build:
127
@echo "==> Building for all platforms..."
13-
$(foreach GOOS, $(PLATFORMS),\
14-
$(foreach GOARCH, $(ARCHITECTURES), $(shell export GOOS=$(GOOS); export GOARCH=$(GOARCH); go build -o build/$(GOOS)/$(GOARCH)/$(BINARY))))
8+
GOOS=linux GOARCH=amd64 go build -o build/sicra
9+
tar -czf build/sicra-linux-amd64.tar.gz build/sicra
1510

1611
.PHONY: deps build

0 commit comments

Comments
 (0)