From c60374d361bc3a37ab0d7d8d7aab6124cb5fe0c3 Mon Sep 17 00:00:00 2001 From: nullgemm Date: Tue, 23 May 2017 23:57:57 +0200 Subject: [PATCH] changed installation path and method --- ly.service | 2 +- makefile | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ly.service b/ly.service index 1d0c7ee..8f8f970 100755 --- a/ly.service +++ b/ly.service @@ -5,7 +5,7 @@ After=getty@tty2.service [Service] Type=simple -ExecStart=/bin/ly +ExecStart=/usr/bin/ly StandardInput=tty TTYPath=/dev/tty2 TTYReset=yes diff --git a/makefile b/makefile index 3aefe39..d69e352 100755 --- a/makefile +++ b/makefile @@ -3,10 +3,10 @@ ly : cc -std=c99 -pedantic -Wall -I src -L/usr/lib/security -lform -lncurses -lpam -lpam_misc -lX11 -l:pam_loginuid.so -o build/ly src/main.c src/utils.c src/login.c src/ncui.c src/desktop.c install : ly - cp build/ly /bin/ly - mkdir -p /etc/ly - cp ly.service /lib/systemd/system/ly.service - ln -sf /usr/lib/security/pam_loginuid.so /lib/pam_loginuid.so + install -d ${DESTDIR}/etc/ly + install -D build/ly -t ${DESTDIR}/usr/bin + install -D ly.service -t ${DESTDIR}/usr/lib/systemd/system + ln -sf /usr/lib/security/pam_loginuid.so ${DESTDIR}/usr/lib/pam_loginuid.so all : install