-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (35 loc) · 1.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
.POSIX:
SHELL := /bin/sh
PROJECT_NAME := edna
PROJECT_DESCRIPTION := E.D.N.A.
FLUTTER := flutter
FLUTTER_OPTS := --no-sound-null-safety
.PHONY: help
help:
@echo "Usage:"
@echo " init - Re-creates portions of the project structure"
@echo " clean - Clean flutter build output"
@echo ""
@echo " web - Build the progressive web app"
@echo " linux - Build the Linux/Desktop app"
.PHONY: init
init:
@$(FLUTTER) create --org com.cathive --project-name $(PROJECT_NAME) --description "$(PROJECT_DESCRIPTION)" .
.PHONY: prepare
prepare pubspec.lock: pubspec.yaml
@$(FLUTTER) pub get
.PHONY: web
web build/web/.last_build_id:
@$(FLUTTER) build web $(FLUTTER_OPTS)
build/linux/x64/debug/bundle/$(PROJECT_NAME):
@$(FLUTTER) build linux $(FLUTTER_OPTS) --target-platform=linux-x64 --debug
build/linux/x64/release/bundle/$(PROJECT_NAME):
@$(FLUTTER) build linux $(FLUTTER_OPTS) --target-platform=linux-x64 --release
.PHONY: linux-x64
linux-x64: build/linux/x64/debug/bundle/edna build/linux/x64/release/bundle/$(PROJECT_NAME)
.PHONY: linux
linux: linux-x64
.PHONY: clean
clean:
@$(FLUTTER) clean
@rm -Rf build/