-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
38 lines (29 loc) · 874 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
.PHONY: help
help:
@fgrep -h "##" $(MAKEFILE_LIST) | sed -e 's/\(\:.*\#\#\)/\:\ /' | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
.PHONY: build
build: ## build images
docker build .
.PHONY: build-no-cache
build-no-cache: ## build images discarding cache
docker build .
.PHONY: stop
stop: ## stop images
docker compose down
.PHONY: start
start: ## start images from docker compose
docker compose up
.PHONY: clean
clean: stop ## clean container created by docker compose
docker compose rm
.PHONY: clean-start
clean-start: clean build-no-cache start ## cleans cache, build discarding cache and start dockers
.PHONY: format
format: ## Run dart format
dart format --set-exit-if-changed -l 160 ./lib ./bin
.PHONY: format-apply
format-apply: ## Run dart format
dart format --fix -l 160 ./lib ./bin
.PHONY: analyze
analyze: ## Run dart analyze
dart analyze