-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
19 lines (15 loc) · 1016 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
VERSION = 0.1.0
PACKAGE = github.com/nuxy/go-crypto-market-ui/cmd/crypto-market-ui
LDFLAGS = "-X main.Version=$(VERSION)"
run:
go run $(GOFLAGS) -ldflags $(LDFLAGS) ./cmd/crypto-market-ui/main.go
build:
go build -x $(GOFLAGS) -ldflags $(LDFLAGS) -o ./bin/crypto-market-ui $(PACKAGE)
install:
go install -x $(GOFLAGS) -ldflags $(LDFLAGS) $(PACKAGE)
buildall:
GOOS=darwin GOARCH=amd64 go build $(GOFLAGS) -ldflags $(LDFLAGS) -o ./bin/crypto-market-ui-$(VERSION)-osx-64 $(PACKAGE)
GOOS=freebsd GOARCH=amd64 go build $(GOFLAGS) -ldflags $(LDFLAGS) -o ./bin/crypto-market-ui-$(VERSION)-freebsd-64 $(PACKAGE)
GOOS=linux GOARCH=amd64 go build $(GOFLAGS) -ldflags $(LDFLAGS) -o ./bin/crypto-market-ui-$(VERSION)-linux-64 $(PACKAGE)
GOOS=windows GOARCH=amd64 go build $(GOFLAGS) -ldflags $(LDFLAGS) -o ./bin/crypto-market-ui-$(VERSION)-windows-64.exe $(PACKAGE)
GOOS=windows GOARCH=386 go build $(GOFLAGS) -ldflags $(LDFLAGS) -o ./bin/crypto-market-ui-$(VERSION)-windows-32.exe $(PACKAGE)