summaryrefslogtreecommitdiffstats
path: root/src/dkv/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/dkv/Makefile')
-rw-r--r--src/dkv/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/dkv/Makefile b/src/dkv/Makefile
new file mode 100644
index 0000000..5b7d979
--- /dev/null
+++ b/src/dkv/Makefile
@@ -0,0 +1,26 @@
+GOPATH := $(shell realpath "$(PWD)/../../")
+BINARY=dkv
+DEPENDENCIES := github.com/golang/dep/cmd/dep
+
+export GOPATH ...
+
+all: build test
+deploy: build test
+
+build: deps format
+ echo $(GOPATH)
+ $(GOPATH)/bin/dep ensure
+ go build -o $(GOPATH)/target/$(BINARY) -v main.go
+
+clean:
+ go clean
+ rm -f $(GOPATH)/target/$(BINARY)
+
+test:
+ go test -v ./api/...
+
+format:
+ go fmt ./api/...
+
+deps:
+ go get -u $(DEPENDENCIES)