]> rtime.felk.cvut.cz Git - novaboot.git/blobdiff - Makefile
server: Do not hardcode bash path
[novaboot.git] / Makefile
index 4998d724b67f2d3ab70eb4162db7b208214b3934..a84a1b3bf3f4f0b824d6d187b9ad9543629edda3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ DESTDIR=
 PREFIX=/usr
 
 all:
+       $(MAKE) -C server
 
 README.md: novaboot
        pod2markdown $< > $@
@@ -15,6 +16,15 @@ install:
        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
+ifneq ($(INSTALL_SERVER),)
+       $(MAKE) -C server install PREFIX=$(PREFIX)
+endif
 
 test:
        $(MAKE) -C tests
+
+release:
+       : gbp dch --release -N $(shell date +%Y%m%d) --commit
+       : gbp buildpackage --git-tag -b
+       : debrelease rtime
+       : git push --follow-tags