-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
22 lines (16 loc) · 888 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Define the PREFIX variable
PREFIX ?= /usr
SRC=src
# Default target
all: clean install
prepare:
mkdir -p $(PREFIX)/share/hyde/sddm
mkdir -p /etc/sddm.conf.d/
install: clean prepare
@install -D $(SRC)/hyprland.conf $(PREFIX)/share/hyde/sddm/hyprland.conf && echo "[Installed] $(PREFIX)/share/hyde/sddm/hyprland.conf"
@install -D $(SRC)/sddm-hyprland.conf /etc/sddm.conf.d/sddm-hyprland.conf && echo "[Installed] /etc/sddm.conf.d/sddm-hyprland.conf"
@sed -i 's|CompositorCommand=.*|CompositorCommand=Hyprland -c $(PREFIX)/share/hyde/sddm/hyprland.conf|' /etc/sddm.conf.d/sddm-hyprland.conf && echo "[default sddm conf] $(PREFIX)/share/hyde/sddm/hyprland.conf"
clean:
@rm -rf $(PREFIX)/share/hyde/sddm && echo "[cleaned] $(PREFIX)/share/hyde/sddm"
@rm -rf /etc/sddm.conf.d/sddm-hyprland.conf && echo "[cleaned] /etc/sddm.conf.d/sddm-hyprland.conf"
.PHONY: all install prepare