[sheepdog] [PATCH RFC 2/5] Makefile: add support for deb package generation

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Jul 8 06:50:48 CEST 2013


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.8.1.3.566.gaa39828




More information about the sheepdog mailing list