forked from Parallels/docker-machine-parallels
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (24 loc) · 981 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
31
32
33
34
GODEP_BIN := $(GOPATH)/bin/godep
GODEP := $(shell [ -x $(GODEP_BIN) ] && echo $(GODEP_BIN) || echo '')
# Initialize version flag
GO_LDFLAGS := -X $(shell go list ./).GitCommit=$(shell git rev-parse --short HEAD 2>/dev/null)
default: build
bin/docker-machine-driver-parallels:
go build -i -ldflags "$(GO_LDFLAGS)" \
-o ./bin/docker-machine-driver-parallels ./bin
build: clean bin/docker-machine-driver-parallels
clean:
$(RM) bin/docker-machine-driver-parallels
install: bin/docker-machine-driver-parallels
cp -f ./bin/docker-machine-driver-parallels $(GOPATH)/bin/
test-acceptance:
test/integration/run-bats.sh test/integration/bats/
dep-save:
$(if $(GODEP), , \
$(error Please install godep: go get github.com/tools/godep))
$(GODEP) save $(shell go list ./... | grep -v vendor/)
dep-restore:
$(if $(GODEP), , \
$(error Please install godep: go get github.com/tools/godep))
$(GODEP) restore -v
.PHONY: clean build dep-save dep-restore install test-acceptance