forked from duedil-ltd/discodns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (25 loc) · 827 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
all:: clean build
build:: get compile
clean:
@echo "\033[34m●\033[39m Cleaning out the build folder ./build"
rm -rf build/*
@echo "\033[32m✔\033[39m Cleaned ./build"
get:
@echo "\033[34m●\033[39m Downloading go packages"
go get github.com/tools/godep
go get -d
godep restore
@echo "\033[32m✔\033[39m Finished downloading packages"
compile:
@echo "\033[34m●\033[39m Building into ./build"
mkdir -p build/bin
go build -o build/bin/discodns *.go
@echo "\033[32m✔\033[39m Successfully built into ./build"
test:
@echo "\033[34m●\033[39m Running tests"
go test -race
@echo "\033[32m✔\033[39m Tests passed"
install:
@echo "\033[34m●\033[39m Installing into /usr/local/bin"
cp build/bin/discodns /usr/local/bin/
@echo "\033[32m✔\033[39m Successfully installed into /usr/local/bin/discodns"