]> git.proxmox.com Git - spiceterm.git/blobdiff - Makefile
build: fix -dbgsym generation
[spiceterm.git] / Makefile
index f1284d0a92fcefd66945004d2ae6654ee422c83a..db644b5b0169c8ee402cacbfbca71de16440048d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,13 +9,23 @@ BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
 export VERSION=$(DEB_VERSION_UPSTREAM)
 
 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
+DBG_DEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
+DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
-.PHONY: deb
-deb: ${DEB}
-${DEB}:
+${BUILDDIR}: src/ debian/
        rm -rf $(BUILDDIR)
        rsync -a src/ debian $(BUILDDIR)
        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
        lintian ${DEB}
 
@@ -25,9 +35,9 @@ dinstall: ${DEB}
 
 .PHONY: upload
 upload: ${DEB}
-       tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
+       tar cf - ${DEB} ${DBG_DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch ${ARCH}
 
 .PHONY: distclean clean
 distclean: clean
 clean:
-       rm -rf *~ $(BUILDDIR) *.deb *.changes genfont *.buildinfo
+       rm -rf *~ $(PACKAGE)-*/ *.deb *.changes genfont *.buildinfo *.dsc *.tar.gz