-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
40 lines (30 loc) · 904 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
40
.PHONY : default deps test build image docs
export VERSION = 0.1.0-beta1
HARDWARE = $(shell uname -m)
OS := $(shell uname)
default: deps test build
deps:
@echo "Configuring Last.Backend Dependencies"
go get -u github.com/golang/dep/cmd/dep
dep ensure
test:
@echo "Testing Last.Backend"
@sh ./hack/run-coverage.sh
docs: docs/*
@echo "Build Last.Backend Documentation"
@sh ./hack/build-docs.sh
build:
@echo "== Pre-building cli configuration"
mkdir -p build/linux && mkdir -p build/darwin
@echo "== Building Last.Backend CLI"
@bash ./hack/build-cross.sh cli
install:
@echo "== Install binaries"
@bash ./hack/install-cross.sh
image:
@echo "== Pre-building configuration"
@sh ./hack/build-images.sh
swagger-spec:
@echo "== Generating Swagger spec for Last.Backend API"
go get -u github.com/go-swagger/go-swagger/cmd/swagger
swagger generate spec -b ./cmd/kit -m -o ./swagger.json