]> rtime.felk.cvut.cz Git - novaboot.git/blobdiff - server/Makefile
Catch errors in pre-commit hook
[novaboot.git] / server / Makefile
index ece360fa7d18fb49adf7209de84627cda281aa9b..9d0413fe7240651b032b1687434d036eda71a1a0 100644 (file)
@@ -1,4 +1,22 @@
-all: adduser-novaboot.8
+PREFIX=/usr
 
-adduser-novaboot.8: adduser-novaboot Makefile
+all: adduser-novaboot.8 novaboot-shell.1
+
+adduser-novaboot.8: adduser-novaboot
        pod2man --section=8 --center="System Manager's Manual" $< $@
+
+novaboot-shell.1: novaboot-shell
+       pod2man --center="User commands" $< $@
+
+install: all
+       install -D -m 755 -t $(DESTDIR)$(PREFIX)/bin novaboot-shell
+       install -D -m 644 -t $(DESTDIR)$(PREFIX)/share/man/man1 novaboot-shell.1
+       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@.target
+       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-power-off.service
+       install -D -m 440 systemd/sudoers.novaboot-server $(DESTDIR)/etc/sudoers.d/novaboot-server
+       install -D -m 755 -t $(DESTDIR)$(PREFIX)/bin systemd/novaboot-power