-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 693 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 693 Bytes
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
.PHONY: demo build swag
REGISTRY=localhost
IMAGE_TAG=`git describe --tags`
usage:
@echo
@echo ' Usage for migrate app:'
@echo ' make swag generate all app swagger docs.'
@echo ' make docker build docker image.'
@echo ' make run app=<demo> run app locally.'
@echo ' make protoc generate all protocol files'
@echo ' make _new new project at current dir.'
# swagger
swag:
@scripts/swag.sh $(app)
# build docker
docker:
@scripts/docker.sh $(REGISTRY) $(IMAGE_TAG) $(app)
# run app
run:
@scripts/run.sh $(app)
# protoc
protoc:
@scripts/protoc.sh
# new project
_new:
@scripts/new_proj.sh