-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
31 lines (23 loc) · 1.01 KB
/
Makefile
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
all: clean win_64 win_32 linux_64 linux_32 darwin_64
win_64:
env GOOS=windows GOARCH=amd64 go build -o "dist/pubsub-push.exe" ./cmd/pubsub-push
zip -T -j -9 "dist/pubsub-push_$(shell cat VERSION)[email protected]" dist/pubsub-push.exe
rm -f dist/pubsub-push.exe
win_32:
env GOOS=windows GOARCH=386 go build -o "dist/pubsub-push.exe" ./cmd/pubsub-push
zip -T -j -9 "dist/pubsub-push_$(shell cat VERSION)[email protected]" dist/pubsub-push.exe
rm -f dist/pubsub-push.exe
linux_64:
env GOOS=linux GOARCH=amd64 go build -o dist/pubsub-push ./cmd/pubsub-push
gzip dist/pubsub-push -c > "dist/pubsub-push_$(shell cat VERSION)[email protected]"
rm -f dist/pubsub-push
linux_32:
env GOOS=linux GOARCH=386 go build -o dist/pubsub-push ./cmd/pubsub-push
gzip dist/pubsub-push -c > "dist/pubsub-push_$(shell cat VERSION)[email protected]"
rm -f dist/pubsub-push
darwin_64:
env GOOS=darwin GOARCH=amd64 go build -o dist/pubsub-push ./cmd/pubsub-push
gzip dist/pubsub-push -c > "dist/pubsub-push_$(shell cat VERSION)[email protected]"
rm -f dist/pubsub-push
clean:
rm -rf dist/*