]> rtime.felk.cvut.cz Git - novaboot.git/blobdiff - Makefile
Add --tftp-port option
[novaboot.git] / Makefile
index e4843e747dca51b4379ae3d12fbf430669254d8a..1565579adbe384c822f7cf6727e86db2537baeb4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,18 @@
+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
+
+test:
+       $(MAKE) -C tests