summaryrefslogtreecommitdiff
path: root/core/slogin/Makefile
diff options
context:
space:
mode:
authorauric <104602845+ihateamongus@users.noreply.github.com>2025-09-08 23:44:06 -0500
committerGitHub <noreply@github.com>2025-09-08 23:44:06 -0500
commit8f03aa9417b06d91182e7adc2e0b8c53e7cf6069 (patch)
treebdc85f947d51e5d5243a0544181738fcf7ec3903 /core/slogin/Makefile
parent278f3e9054cf5d7b02e995a69653504242956874 (diff)
parent85d91a056004d8dbe5016ba35bc670ad1b75c8b1 (diff)
Merge pull request #23 from ihateamongus/codex/create-suckless-style-x11-login-manager
Refactor slogin for framebuffer OpenRC login
Diffstat (limited to 'core/slogin/Makefile')
-rw-r--r--core/slogin/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/slogin/Makefile b/core/slogin/Makefile
index 7026ffb..0f9b32a 100644
--- a/core/slogin/Makefile
+++ b/core/slogin/Makefile
@@ -5,6 +5,7 @@ include config.mk
SRC = slogin.c
OBJ = ${SRC:.c=.o}
+RC = slogin.openrc
all: slogin
@@ -26,8 +27,12 @@ install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f slogin ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/slogin
+ mkdir -p ${DESTDIR}/etc/init.d
+ cp -f ${RC} ${DESTDIR}/etc/init.d/slogin
+ chmod 755 ${DESTDIR}/etc/init.d/slogin
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/slogin
+ rm -f ${DESTDIR}/etc/init.d/slogin
.PHONY: all clean install uninstall