-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
32 lines (28 loc) · 871 Bytes
/
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
PREFIX := /usr
UPST := /etc/init
USE_SYSTEMD ?= 0
USE_UPSTART ?= 0
BIN_DIR := $(PREFIX)/bin
SYSD_DIR := $(PREFIX)/lib/systemd/system
UPST_DIR := $(UPST)
INSTALL_BIN_DIR := $(DESTDIR)$(BIN_DIR)
INSTALL_SYSD_DIR := $(DESTDIR)$(SYSD_DIR)
INSTALL_UPST_DIR := $(DESTDIR)$(UPST_DIR)
build:
@echo "Nothing to build, run 'make install' to copy the files!"
check_selinux:
if [ -f /sys/fs/selinux/enforce ]; then \
echo "Kitsune Mask is not compatible with SELinux on Waydroid."; \
exit 1; \
fi
install: check_selinux
install -d $(INSTALL_BIN_DIR)
install -m 755 waydroid_magisk.py $(INSTALL_BIN_DIR)/waydroid_magisk
if [ $(USE_SYSTEMD) = 1 ]; then \
install -d $(INSTALL_SYSD_DIR); \
cp waydroid_magisk_ota.service $(INSTALL_SYSD_DIR); \
fi
if [ $(USE_UPSTART) = 1 ]; then \
install -d $(UPST_DIR); \
cp waydroid_magisk_ota.conf $(INSTALL_UPST_DIR); \
fi