]> git.proxmox.com Git - vncterm.git/commitdiff
buildsys: add DSC & sbuild convenience target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 29 May 2023 15:49:53 +0000 (17:49 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 29 May 2023 15:56:10 +0000 (17:56 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 1740b81dc4fbbeae6a9f9ec0abfc7a0ece0db4dd..1198206947cc5f5e9698ec58ed2e49775754b411 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,8 @@ VNCDIR=libvncserver-$(VNCREL)
 VNCSRC=$(VNCREL).tar.gz
 VNCLIB=$(VNCDIR)/libvncserver.a
 
+DSC = $(PACKAGE)_$(DEB_VERSION).dsc
+
 DEB=$(PACKAGE)_$(DEB_VERSION)_$(DEB_HOST_ARCH).deb
 DBG_DEB=$(PACKAGE)-dbgysm_$(DEB_VERSION)_$(DEB_HOST_ARCH).deb
 
@@ -71,13 +73,27 @@ $(DEB): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -rfakeroot -b -us -uc
        lintian $(DEB)
 
+.PHONY: dsc
+dsc: $(DSC)
+       rm -rf $(BUILDDIR) $(DSC)
+       $(MAKE) $(DSC)
+       lintian $(DSC)
+
+$(DSC): $(BUILDDIR)
+       cd $(BUILDDIR); dpkg-buildpackage -S -us -uc
+
+sbuild: $(DSC)
+       sbuild $<
+
 .PHONY: upload
 upload: $(DEB)
        tar cf - $(DEB) $(DBG_DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
 
 .PHONY: clean
 clean:
-       rm -rf vncterm vncterm.1 vncterm_*.deb genfont genfont2 *~ $(VNCDIR) vncterm-*.tar.gz glyph.h.tmp build *.changes wchardata.c font.data.tmp font.data *.buildinfo
+       rm -f *.dsc *.deb $(PACKAGE)*.tar* *.changes *.build *.buildinfo
+       rm -f vncterm vncterm.1 genfont genfont2 *~ *.tmp wchardata.c font.data
+       rm -rf $(VNCDIR) $(PACKAGE)-[0-9]*/
 
 .PHONY: distclean
 distclean: clean