-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
94 lines (66 loc) · 2.11 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
.PHONY: all build l10n apk ios clean web_html web appbundle
all: build l10n apk ios clean web_html web appbundle
# Variables
FLUTTER := fvm flutter
help: ## This help dialog.
@IFS=$$'\n' ; \
help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//'`); \
for help_line in $${help_lines[@]}; do \
IFS=$$'#' ; \
help_split=($$help_line) ; \
help_command=`echo $${help_split[0]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
help_info=`echo $${help_split[2]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
printf "%-30s %s\n" $$help_command $$help_info ; \
done
clean: ## Cleans the environment
@echo "🗑️ Cleaning the project..."
@rm -rf pubspec.lock
$(FLUTTER) clean
$(FLUTTER) pub get
@echo "✅ Cleaned the project"
watch: ## Watches the files for changes
@echo "🧑💻 Watching the project..."
$(FLUTTER) pub run build_runner watch --delete-conflicting-outputs
build: ## Build the files for changes
@echo "👷 Building the project..."
$(FLUTTER) pub run build_runner build --delete-conflicting-outputs
apk: ## Build the mobile application ANDROID
@echo "📱 Building ANDROID Apk"
@echo " "
$(MAKE) clean
@echo " "
$(FLUTTER) build apk
@echo "🚀 Android Application build Sucessfully"
appbundle: ## Build the mobile APPBUNDLE ANDROID
@echo "📱 Building ANDROID APPBUNDLE"
@echo " "
$(MAKE) clean
@echo " "
$(FLUTTER) build appbundle
@echo "🚀 Android Application build Sucessfully"
web_html: ## Build the Web (HTML Render)
@echo "🌐 Building Web in Html Render"
@echo " "
$(MAKE) clean
@echo " "
$(FLUTTER) build web --web-renderer html
@echo "🚀 Web Html Render build Sucessfully"
web: ## Build the Web
@echo "🌐 Building Web"
@echo " "
$(MAKE) clean
@echo " "
$(FLUTTER) build web
@echo "🚀 Web build Sucessfully"
ios: ## Build the mobile application IOS
@echo "🍎 Building IOS"
@echo " "
$(MAKE) clean
@echo " "
cd ios; pod install; cd ..
$(FLUTTER) build ios
@echo "🚀 Ios Application build Sucessfully"
l10n: ## Generate Localization
@echo "🔨 Generating Localization"
$(FLUTTER) gen-l10n
@echo "🚀 Localization Generated"