[pve-devel] [PATCH guest-common 1/6] build: add dsc target
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed Oct 24 10:19:38 CEST 2018
to build a source package
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
Makefile | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 288933d..c2517e6 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ PKGVER=2.0
PKGREL=18
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
+DSC=${PACKAGE}_${PKGVER}-${PKGREL}.dsc
DESTDIR=
@@ -19,6 +20,14 @@ ${DEB}:
cd build; dpkg-buildpackage -b -us -uc
lintian ${DEB}
+.PHONY: dsc
+dsc: ${DSC}
+${DSC}:
+ rm -rf build
+ rsync -a * build
+ cd build; dpkg-buildpackage -S -us -uc -d -nc
+ lintian ${DSC}
+
install: PVE
install -d ${PERL5DIR}/PVE
install -m 0644 PVE/GuestHelpers.pm ${PERL5DIR}/PVE/
@@ -37,7 +46,7 @@ upload: ${DEB}
distclean: clean
clean:
- rm -rf ./build *.deb *.changes *.buildinfo
+ rm -rf ./build *.deb *.dsc *.changes *.buildinfo *.tar.gz
.PHONY: dinstall
dinstall: ${DEB}
--
2.19.1
More information about the pve-devel
mailing list