]> rtime.felk.cvut.cz Git - novaboot.git/blobdiff - Makefile
doc: Add link to novaboot homepage
[novaboot.git] / Makefile
index e4843e747dca51b4379ae3d12fbf430669254d8a..4998d724b67f2d3ab70eb4162db7b208214b3934 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,20 @@
+DESTDIR=
+PREFIX=/usr
+
+all:
+
 README.md: novaboot
        pod2markdown $< > $@
+
+install:
+       install -d $(DESTDIR)$(PREFIX)/bin
+       install -m 755 novaboot $(DESTDIR)$(PREFIX)/bin
+       install -d $(DESTDIR)$(PREFIX)/share/man/man1/
+       pod2man novaboot $(DESTDIR)$(PREFIX)/share/man/man1/novaboot.1
+       install -d $(DESTDIR)/etc/sudoers.d
+       install -m 440 sudoers.novaboot $(DESTDIR)/etc/sudoers.d/novaboot
+       install -d $(DESTDIR)/etc/novaboot.d
+       install -m 644 etc.novaboot.txt $(DESTDIR)/etc/novaboot.d/README.txt
+
+test:
+       $(MAKE) -C tests