[sheepdog] [PATCH v2 2/6] Makefile: add support for deb package generation

MORITA Kazutaka morita.kazutaka at gmail.com
Sat Jul 13 16:22:58 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

This patch allows us to generate a deb package by running command
"make deb".

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 Makefile.am |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index 078c80b..acae9b8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -75,6 +75,14 @@ rpm: clean
 	$(MAKE) $(SPEC) $(TARFILE)
 	rpmbuild $(RPMBUILDOPTS) -ba $(SPEC)
 
+deb:
+	fakeroot ./debian/rules clean
+	git log > debian/CHANGELOG
+	rm -f debian/changelog
+	dch -v $(shell echo $(PACKAGE_VERSION) | sed s/_/+/ | sed s/_/./g)-1 \
+		--package sheepdog --create 'Local build'
+	fakeroot ./debian/rules binary
+
 CGCC=cgcc
 CGCC_CFLAGS=-Wbitwise -Wno-return-void $(ARCH) -fno-common
 
-- 
1.7.9.5



More information about the sheepdog mailing list