5
0
mirror of git://git.proxmox.com/git/spiceterm.git synced 2024-12-22 13:34:06 +03:00

buildsys: add dsc target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-05-22 17:51:06 +02:00
parent ab216da9bf
commit 215750914a

View File

@ -9,13 +9,22 @@ BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
export VERSION=$(DEB_VERSION_UPSTREAM) export VERSION=$(DEB_VERSION_UPSTREAM)
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
.PHONY: deb ${BUILDDIR}: src/ debian/
deb: ${DEB}
${DEB}:
rm -rf $(BUILDDIR) rm -rf $(BUILDDIR)
rsync -a src/ debian $(BUILDDIR) rsync -a src/ debian $(BUILDDIR)
echo "git clone git://git.proxmox.com/git/spiceterm.git\\ngit checkout ${GITVERSION}" > $(BUILDDIR)/debian/SOURCE echo "git clone git://git.proxmox.com/git/spiceterm.git\\ngit checkout ${GITVERSION}" > $(BUILDDIR)/debian/SOURCE
.PHONY: dsc
dsc: ${DSC}
${DSC}: $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
lintian ${DSC}
.PHONY: deb
deb: ${DEB}
${DEB}: $(BUILDDIR)
cd $(BUILDDIR); dpkg-buildpackage -b -us -uc cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
lintian ${DEB} lintian ${DEB}
@ -30,4 +39,4 @@ upload: ${DEB}
.PHONY: distclean clean .PHONY: distclean clean
distclean: clean distclean: clean
clean: clean:
rm -rf *~ $(BUILDDIR) *.deb *.changes genfont *.buildinfo rm -rf *~ $(BUILDDIR) *.deb *.changes genfont *.buildinfo *.dsc *.tar.gz