-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
32 lines (22 loc) · 881 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
PREFIX ?= "/opt/project"
GOOS ?= "linux"
all: build
$(GOPATH)/bin/dep:
mkdir -p $(GOPATH)/bin
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | GOPATH=$(GOPATH) GOOS=$(GOOS) sh
build_dep: $(GOPATH)/bin/dep
GOPATH=$(GOPATH) GOOS=$(GOOS) $(GOPATH)/bin/dep ensure
update_dep: $(GOPATH)/bin/dep
GOPATH=$(GOPATH) GOOS=$(GOOS) $(GOPATH)/bin/dep ensure --update
build: build_dep
GOPATH=$(GOPATH) GOOS=$(GOOS) go install github.com/Donders-Institute/hpc-webhook/...
doc:
@GOPATH=$(GOPATH) GOOS=$(GOOS) godoc -http=:6060
test: build_dep
@GOPATH=$(GOPATH) GOOS=$(GOOS) GOCACHE=off go test -v github.com/Donders-Institute/hpc-webhook/...
install: build
@install -D $(GOPATH)/bin/* $(PREFIX)/bin
clean:
@rm -rf $(GOPATH)/bin/cluster-*
@rm -rf $(GOPATH)/bin/trqhelpd
@rm -rf $(GOPATH)/pkg/*/Donders-Institute/hpc-webhook