-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 757 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 757 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
34
35
ROOT := $(shell git rev-parse --show-toplevel)
FLUTTER := $(shell which flutter)
FLUTTER_BIN_DIR := $(shell dirname $(FLUTTER))
FLUTTER_DIR := $(FLUTTER_BIN_DIR:/bin=)
DART := $(FLUTTER_BIN_DIR)/cache/dart-sdk/bin/dart
# Flutter
.PHONY: analyze
analyze:
$(FLUTTER) analyze
.PHONY: test
test:
$(FLUTTER) test
.PHONY: codegen
codegen:
$(FLUTTER) pub run build_runner build --delete-conflicting-outputs
.PHONY: run
run:
$(FLUTTER) run -t lib/main/main.dart
.PHONY: codegen-cached
codegen-cached:
flutter pub run build_runner build
.PHONY: codegen
codegen:
flutter pub run build_runner build --delete-conflicting-outputs
.PHONY: codegen-release
codegen-release:
flutter pub run build_runner build --delete-conflicting-outputs --config release