]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
server: Unify installation target to PREFIX
authorMichal Sojka <michal.sojka@cvut.cz>
Tue, 19 Apr 2022 21:54:44 +0000 (23:54 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Tue, 26 Apr 2022 08:56:22 +0000 (10:56 +0200)
Previously, we installed something to $PREFIX, something directly to
/usr/lib and /lib. Now, we use $PREFIX everywhere.

server/Makefile

index d5c6070ecd47272035de08520b4c624ebf993a30..9f2df24b77e2a210de8cdb9170564695d41903ed 100644 (file)
@@ -14,10 +14,10 @@ install: all
        install -D -m 755 -t $(DESTDIR)$(PREFIX)/sbin adduser-novaboot
        install -D -m 644 -t $(DESTDIR)$(PREFIX)/share/man/man8 adduser-novaboot.8
        install -D -m 644 -t $(DESTDIR)$(PREFIX)/lib/sysusers.d sysusers.d/novaboot-server.conf
-       install -D -m 644 -t $(DESTDIR)/lib/systemd/system systemd/novaboot-power-off@.service
-       install -D -m 644 -t $(DESTDIR)/lib/systemd/system systemd/novaboot-power-off@.timer
-       install -D -m 644 -t $(DESTDIR)/lib/systemd/system systemd/novaboot-power@.service
-       install -D -m 644 -t $(DESTDIR)/usr/lib/systemd/user systemd/novaboot-delayed-power-off.service
-       install -D -m 644 -t $(DESTDIR)/usr/lib/systemd/user systemd/novaboot-delayed-power-off.target
+       install -D -m 644 -t $(DESTDIR)$(PREFIX)/lib/systemd/system systemd/novaboot-power-off@.service
+       install -D -m 644 -t $(DESTDIR)$(PREFIX)/lib/systemd/system systemd/novaboot-power-off@.timer
+       install -D -m 644 -t $(DESTDIR)$(PREFIX)/lib/systemd/system systemd/novaboot-power@.service
+       install -D -m 644 -t $(DESTDIR)$(PREFIX)/lib/systemd/user systemd/novaboot-delayed-power-off.service
+       install -D -m 644 -t $(DESTDIR)$(PREFIX)/lib/systemd/user systemd/novaboot-delayed-power-off.target
        install -D -m 440 systemd/sudoers.novaboot-server $(DESTDIR)/etc/sudoers.d/novaboot-server
        install -D -m 755 -t $(DESTDIR)$(PREFIX)/sbin systemd/novaboot-power