]> rtime.felk.cvut.cz Git - sojka/sterm.git/commitdiff
Add Makefile targets for (cross)building Debian package
authorMichal Sojka <michal.sojka@cvut.cz>
Fri, 4 May 2018 22:09:28 +0000 (00:09 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Fri, 4 May 2018 22:09:28 +0000 (00:09 +0200)
This is for me to not forget the needed parameters.

Makefile

index ab60ba22ddf8d4645a4e122b0abfa66a3b5fd082..cab228689d94538d24ea247b43e657896123bfc6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,3 +27,10 @@ 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'