]> rtime.felk.cvut.cz Git - sojka/sterm.git/blobdiff - Makefile
Few fixes in the man page
[sojka/sterm.git] / Makefile
index f7d0b4dd1881bcad927e7cc340492dfe7f7c3b1f..0bd9893c2957d1125dc30e45ef5b89db4f2ba733 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ endif
 
 PREFIX ?= /usr/local
 INSTALL ?= install
+INSTALL_BIN ?= install -s
 
 all: sterm
 
@@ -14,7 +15,7 @@ clean:
 
 install: all
        $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
-       $(INSTALL) -s -m 755 sterm $(DESTDIR)$(PREFIX)/bin
+       $(INSTALL_BIN) -m 755 sterm $(DESTDIR)$(PREFIX)/bin
 ifneq ($(NO_MAN),1)
        $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/man/man1
        $(INSTALL) -m 644 sterm.man $(DESTDIR)$(PREFIX)/share/man/man1/sterm.1
@@ -26,3 +27,16 @@ ifneq ($(NO_COMP),1)
        $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/zsh/functions/Completion/Unix/
        $(INSTALL) -m 644 completion.zsh $(DESTDIR)$(PREFIX)/share/zsh/functions/Completion/Unix/_sterm
 endif
+
+deb:
+       sbuild
+
+# Deb cross-building (% stands for debian architecture such as armhf)
+deb-%:
+       sbuild --host=$* --add-depends=libc-dev:$* --build-failed-commands='%s'
+
+release:
+       gbp dch --release -N $(shell date +%Y%m%d) --commit
+       gbp buildpackage --git-tag -b
+       debrelease rtime
+       git push --follow-tags