-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
30 lines (24 loc) · 1.1 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
# Copyright (c) 2014-2018 by Michael Dvorkin. All Rights Reserved.
# Use of this source code is governed by a MIT-style license that can
# be found in the LICENSE file.
#
# I am making my contributions/submissions to this project solely in my
# personal capacity and am not conveying any rights to any intellectual
# property of any third parties.
VERSION = 4.1
GOFLAGS = -gcflags -B
PACKAGE = github.com/michaeldv/donna/cmd/donna
build:
go build -x -a -o ./bin/donna $(GOFLAGS) $(PACKAGE)
install:
go install -x $(GOFLAGS) $(PACKAGE)
run:
go run $(GOFLAGS) ./cmd/donna/main.go -i
test:
go test
buildall:
GOOS=darwin GOARCH=amd64 go build -a $(GOFLAGS) -o ./bin/donna-$(VERSION)-osx-64 $(PACKAGE)
GOOS=freebsd GOARCH=amd64 go build -a $(GOFLAGS) -o ./bin/donna-$(VERSION)-freebsd-64 $(PACKAGE)
GOOS=linux GOARCH=amd64 go build -a $(GOFLAGS) -o ./bin/donna-$(VERSION)-linux-64 $(PACKAGE)
GOOS=windows GOARCH=amd64 go build -a $(GOFLAGS) -o ./bin/donna-$(VERSION)-windows-64.exe $(PACKAGE)
GOOS=windows GOARCH=386 go build -a $(GOFLAGS) -o ./bin/donna-$(VERSION)-windows-32.exe $(PACKAGE)