[sheepdog] [PATCH stable-0.6 2/6] Makefile: add support for deb package generation
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Fri Jul 19 08:07:26 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>
Signed-off-by: Liu Yuan <namei.unix at gmail.com>
---
Makefile.am | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 16eb532..ef5dd4a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -70,6 +70,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.10.4
More information about the sheepdog
mailing list