aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 0eb36d73eb90c7e4aaac2bae33db6e7668f04ecc (plain)
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
.PHONY: help

define HEADER
 ____       _          _ _
|  _ \ _ __(_) ___  __| | |    __ _ _ __ ___  _   _
| | | | '__| |/ _ \/ _` | |   / _` | '_ ` _ \| | | |
| |_| | |  | |  __/ (_| | |__| (_| | | | | | | |_| |
|____/|_|  |_|\___|\__,_|_____\__,_|_| |_| |_|\__,_|

DriedLamu Firmware
https://kasesag.me/projects/driedlamu
https://git.firestarter.house/driedlamu.git
endef
export HEADER

info:
	@echo "$$HEADER"
	@echo ""
	@echo "Debloated firmware for G15/lamu Builder"
	@echo "This project is a fork of DebloatedMotoWeed for G13."
	@echo "Original source: https://github.com/moto-penangf/DebloatedMotoWeed"
	@echo ""
	@echo "Available options: info, clean, build, flash-fresh, flash-upgrade, config"
flash:
	@echo "$$HEADER"
	@echo ""
	@echo "Available options: flash-fresh, flash-upgrade"
clean:
	@echo "$$HEADER"
	@echo ""
	rm -rf ./unpacked && rm -rf /tmp/driedlamu && rm -rf ./super.img
build:
	@echo "$$HEADER"
	@echo ""
	@FECTOOL_DIR=$(shell cd $(dir $(lastword $(MAKEFILE_LIST))) && pwd)/utils/bin/fectool \
		PATH=$$PATH:$$FECTOOL_DIR \
	./stages/build.sh
flash-fresh:
	@echo ""
	./stages/flash.sh fresh
flash-upgrade:
	@echo "$$HEADER"
	@echo ""
	./stages/flash.sh upgrade
config:
	./stages/config.sh