-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (33 loc) · 1.03 KB
/
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
40
41
42
help:
@echo "Target Description"
@echo "===== ==========="
@echo "get-deps Downloads and installs dependencies"
@echo "test Run unittests."
@echo "clean Clean up."
@echo "build Fully builds the source and dependencies."
@echo "build-fast Builds just this packages code."
@echo "install Installs the library."
@echo "build-examples Fully builds the source and produces the examples in this package."
@echo "build-examples-fast Builds and produces the examples in this package."
get-deps:
godep restore
test:
godep go test -v -cover
build: clean
go build -race -x -a .
build-fast: clean
go build .
install:
go install .
clean:
rm -rf bin/
go clean
build-examples-all:
mkdir bin/
go build -o bin/status-example examples/status.go
go build -o bin/gorilla-example examples/gorilla.go
go build -o bin/flag-example examples/flag.go
go build -o bin/httpandhttps-example examples/httpandhttps.go
@echo "See bin/ for examples."
build-examples-fast: build-fast build-examples-all
build-examples: build build-examples-all