-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (42 loc) · 1.01 KB
/
Makefile
File metadata and controls
55 lines (42 loc) · 1.01 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
.PHONY: default client deps clean fmt lint glide
export GOPATH:=$(shell pwd)
export GOBIN=$(shell pwd)/bin
PLATFORMS := windows linux darwin
PKGS := $(shell go list ./src/docsdocs...)
SHELL := /bin/bash
default: all
deps:
@echo "--> intalling deps"
@glide install
@cp -R vendor/* src/
@echo ""
install_client:
@echo "--> intall client"
@go install docsdocs/main/docs
@echo ""
install_server:
@echo "--> intall server"
@go install docsdocs/main/docsd
@echo ""
lint:
@echo "--> linting"
@golint $(PKGS)
@echo ""
fmt:
@echo "--> formating"
@go fmt docsdocs/...
@echo ""
clean:
@echo "--> formating"
go clean -i -r docsdocs/...
@echo ""
install_glide:
@command -v glide >/dev/null ; if [ $$? -ne 0 ]; then \
echo "--> installing glide"; \
curl https://glide.sh/get | sh; \
fi
test:
@go test -v $(shell go list docsdocs/... | grep -v docsdocs/client/views/gui)
coverage:
@goverage -v -coverprofile=coverage.txt $(shell go list docsdocs/... | grep -v docsdocs/client/views/gui)
all: fmt lint client