forked from inconshreveable/ngrok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (27 loc) · 980 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
35
36
37
38
39
.PHONY: default server client deps fmt clean all release-client release-server release-all client-assets server-assets
export GOPATH:=$(shell pwd)
default: all
deps:
go get -tags '$(BUILDTAGS)' -d -v ngrok/...
server: deps
go install -tags '$(BUILDTAGS)' ngrok/main/ngrokd
fmt:
go fmt ngrok/...
client: deps
go install -tags '$(BUILDTAGS)' ngrok/main/ngrok
client-assets:
go get github.com/inconshreveable/go-bindata
GOOS="" GOARCH="" go install github.com/inconshreveable/go-bindata
bin/go-bindata -o src/ngrok/client/assets assets/client
server-assets:
go get github.com/inconshreveable/go-bindata
GOOS="" GOARCH="" go install github.com/inconshreveable/go-bindata
bin/go-bindata -o src/ngrok/server/assets assets/server
release-client: BUILDTAGS=release
release-client: client-assets client
release-server: BUILDTAGS=release
release-server: server-assets server
release-all: release-client release-server
all: fmt client server
clean:
go clean ngrok/...