-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
22 lines (17 loc) · 845 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (c) 2018 by Philipp Drebes. All Rights Reserved.
# Use of this source code is governed by a MIT-style license that can
# be found in the LICENSE file.
VERSION = 0.4.0
PACKAGE = github.com/philippdrebes/goji/cmd/goji
run:
go run ./cmd/goji/main.go
build:
go build -x -o ./bin/goji $(PACKAGE)
install:
go install -x $(PACKAGE)
buildall:
GOOS=darwin GOARCH=amd64 go build $(GOFLAGS) -o ./bin/goji-$(VERSION)-osx-64 $(PACKAGE)
GOOS=freebsd GOARCH=amd64 go build $(GOFLAGS) -o ./bin/goji-$(VERSION)-freebsd-64 $(PACKAGE)
GOOS=linux GOARCH=amd64 go build $(GOFLAGS) -o ./bin/goji-$(VERSION)-linux-64 $(PACKAGE)
GOOS=windows GOARCH=amd64 go build $(GOFLAGS) -o ./bin/goji-$(VERSION)-windows-64.exe $(PACKAGE)
GOOS=windows GOARCH=386 go build $(GOFLAGS) -o ./bin/goji-$(VERSION)-windows-32.exe $(PACKAGE)