-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (35 loc) · 917 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
45
46
47
48
49
50
.PHONY: version doctor
PANA_SCRIPT = ./tool/verify_pub_score.sh 100
VALIDATE_SCRIPT = ./tool/validate-formatting.sh
BUMPV_VERSION_SCRIPT = ./tool/bump-version.sh
EXAMPLE_PATH = example
FVM = fvm
FVM_FLUTTER = $(FVM) flutter
DART = dart
FVM_DART = $(FVM) ${DART}
init:
make activate_fvm; $(FVM) use 3.24.3 --force; $(FVM_DART) pub global activate pana;
activate_fvm:
${DART} pub global activate ${FVM}
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))
pub_get:
$(FVM_FLUTTER) packages get;
clean:
$(FVM_FLUTTER) clean;
fix:
$(FVM_DART) format .;
analyze:
$(FVM_FLUTTER) analyze . --fatal-infos;
pana:
$(PANA_SCRIPT);
validate:
$(VALIDATE_SCRIPT)