-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 646 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (22 loc) · 646 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
default: clean bindir
go build -o bin/scrape *.go
amd64: clean bindir linux windows darwin compress
bindir:
mkdir bin
linux:
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/scrape.linux-amd64 *.go
windows:
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o bin/scrape.windows-amd64.exe *.go
darwin:
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o bin/scrape.darwin-amd-64 *.go
compress:
cd ./bin && find . -name 'scrape*' | xargs -I{} tar czf {}.tar.gz {}
clean:
rm -rf bin
snap-clean:
rm -f scrape_*_amd64.snap*
snapcraft clean
snap-build:
snapcraft
snap-publish:
snapcraft push --release=edge scrape_*_amd64.snap