-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 897 Bytes
/
Makefile
File metadata and controls
46 lines (35 loc) · 897 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
36
37
38
39
40
41
42
43
44
45
46
.ONESHELL:
.DEFAULT_GOAL = help
.EXPORT_ALL_VARIABLES:
WEB_BASE_REF = /
help:
@ # Print help commands
echo "Welcome to 'HoneStorage' project!"
.PHONY: help
dependencies:
@ # Install Flutter dependencies
flutter pub get
.PHONY: dependencies
generate_code:
@ # Generate dart code: JSON converter
flutter pub run build_runner build
.PHONY: generate_code
run-web: dependencies generate_code
@ # Run in web
flutter build web --base-href $(WEB_BASE_REF)
.PHONY: run-web
lint: dependencies generate_code
@ # TODO: add linting target
.PHONY: lint
test: dependencies generate_code
@ # TODO: add testing target
.PHONY: test
clean:
@ # Clean all build files, including: libraries, package manager configs, docker images and containers
rm -rf .dart_tool
rm -rf build
rm -f .flutter-plugins
rm -f .flutter-plugins-dependencies
rm -f honestorage.iml
rm -f pubspec.lock
.PHONY: clean