-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
44 lines (30 loc) · 833 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
41
42
43
44
.PHONY: version doctor
PANA_SCRIPT=./tool/verify_pub_score.sh 100
EXAMPLE_PATH= example
FVM = fvm
FVM_FLUTTER = $(FVM) flutter
FVM_DART = $(FVM) dart
init:
$(FVM) use 3.16.9 --force; $(FVM_DART) pub global activate pana;
version:
$(FVM_FLUTTER) --version; $(FVM_DART) --version;
doctor:
$(FVM_FLUTTER) doctor;
ifeq (bump, $(firstword $(MAKECMDGOALS)))
runargs := $(wordlist 2, $(words $(MAKECMDGOALS)), $(MAKECMDGOALS))
$(eval $(runargs):;@true)
endif
bump:
./tool/bump-version.sh $(filter-out $@,$(MAKECMDGOALS))
build_runner:
$(FVM_FLUTTER) pub run build_runner build --delete-conflicting-outputs --build-filter "lib/src/models/response";
pub_get:
$(FVM_FLUTTER) packages get;
clean:
$(FVM_FLUTTER) clean;
fix:
$(FVM_DART) format .;
analyze:
$(FVM_FLUTTER) analyze . --fatal-infos;
pana:
$(PANA_SCRIPT);