From a8778efa691b1b17593813fc9d7aafa019e8f25d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 26 Nov 2019 13:50:57 +0000 Subject: [PATCH] debian: Add command to build Debian packages easily Signed-off-by: Michael Tremer --- Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile.am b/Makefile.am index ca199c4..cf94eab 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 -- 2.39.2