-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
30 lines (20 loc) · 676 Bytes
/
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
PKG_NAME := github.com/fermayo/dpm
GO := docker run -it --rm -v ${PWD}:/go/src/$(PKG_NAME) -w /go/src/$(PKG_NAME) -e GOOS -e GOARCH golang:1.7 go
GLIDE := docker run -it --rm -v ${PWD}:/run/context -w /run/context dockerepo/glide
.PHONY: all clean binaries linux-binary mac-binary fmt glide-init glide-install glide-update
all: binaries
clean:
rm -fr build/
binaries: linux-binary mac-binary
linux-binary:
GOOS=linux GOARCH=amd64 $(GO) build -v -o build/dpm-Linux-x86_64
mac-binary:
GOOS=darwin GOARCH=amd64 $(GO) build -v -o build/dpm-Darwin-x86_64
fmt:
$(GO) fmt ./...
glide-init:
$(GLIDE) init
glide-install:
$(GLIDE) install
glide-update:
$(GLIDE) update