-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
54 lines (49 loc) · 1.97 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
# This file is part of Origami Kernel Manager.
#
# Origami Kernel Manager is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Origami Kernel Manager is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Origami Kernel Manager. If not, see <https://www.gnu.org/licenses/>.
#
# Copyright (C) 2023-2024 Rem01Gaming
O = out
.PHONY: all
PREFIX ?= /usr
VERSION = $(shell cat share/version)
COMMIT_HASH = $(shell git rev-parse --short HEAD)
VERSION_CODE =$(shell git rev-list HEAD --count)
all:
@echo "Available commands:"
@echo "make install : Install directly to your termux"
@echo "make uninstall : Uninstall from your termux"
@echo "make install-dependence : Install needed dependencines"
install:
cp ./src/* $(PREFIX)/bin
mkdir $(PREFIX)/share/origami-kernel
cp -r ./share/* $(PREFIX)/share/origami-kernel
chmod +x $(PREFIX)/bin/okm
chmod +x $(PREFIX)/bin/okm-sudo
chmod +x $(PREFIX)/bin/okm-menu
@printf "\033[1;38;2;254;228;208m .^. .^.\n"
@printf " /⋀\\_ノ_/⋀\\ \n"
@printf " /ノソノ\\ノソ丶)|\n"
@printf " |ルリリ > )リ\n"
@printf " ノノ㇏ V ノ|ノ\n"
@printf " ⠁⠁\n"
@printf "\033[1;38;2;254;228;208m[+] origami-kernel installed, run with 'okm'\033[0m\n"
uninstall:
rm -f $(PREFIX)/bin/okm $(PREFIX)/bin/okm-sudo $(PREFIX)/bin/okm-menu
rm -rf $(PREFIX)/share/origami-kernel
@printf "\033[1;38;2;254;228;208m[+] origami-kernel uninstalled\033[0m\n"
install-dependence:
@apt install root-repo -y
@apt install fzf fzy git jq sqlite -y
@echo "\033[1;38;2;254;228;208m[+] Dependencies installed\033[0m"