]> git.ipfire.org Git - location/libloc.git/commitdiff
debian: Add command to build Debian packages easily
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Nov 2019 13:50:57 +0000 (13:50 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 26 Nov 2019 13:50:57 +0000 (13:50 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am

index ca199c42ce9dfa9527665f4f546d853e16b44b67..cf94eab3b0144451ffcb600c69ca6f7b27065918 100644 (file)
@@ -9,6 +9,8 @@ BINDINGS =
 
 OS = $(shell uname -s)
 
+DEBIAN_TARBALL_NAME = $(PACKAGE_NAME)_$(PACKAGE_VERSION).orig.tar.xz
+
 if ENABLE_PERL
 BINDINGS += perl
 endif
@@ -394,3 +396,10 @@ man/%.html: man/%.txt man/asciidoc.conf
 .PHONY: upload-man
 upload-man: $(MANPAGES_HTML)
        rsync -avHz --delete --progress $(MANPAGES_HTML) ms@fs01.haj.ipfire.org:/pub/man-pages/$(PACKAGE_NAME)/
+
+$(DEBIAN_TARBALL_NAME): dist
+       cp -v $(distdir).tar.xz $@
+
+.PHONY: debian
+debian: $(DEBIAN_TARBALL_NAME)
+       debuild -i -us -uc -b