]> git.proxmox.com Git - novnc-pve.git/blobdiff - Makefile
buildsys: fix source format and building dsc
[novnc-pve.git] / Makefile
index 304f07eafd3eb318b15f8f2c990c5b85a2ef1579..fd707a7df8b6a23be963d97c40ca181e09cd1a20 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ PACKAGE=novnc-pve
 
 SRCDIR=novnc
 BUILDDIR=$(SRCDIR).tmp
+ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
 
 GITVERSION:=$(shell git rev-parse HEAD)
 
@@ -26,9 +27,12 @@ $(DEB): $(BUILDDIR)
        lintian $(DEB)
        @echo $(DEB)
 
+$(ORIG_SRC_TAR): $(BUILDDIR)
+       tar czf $(ORIG_SRC_TAR) -C $(BUILDDIR) .
+
 .PHONY: dsc
 dsc: $(DSC)
-$(DSC): $(BUILDDIR)
+$(DSC): $(ORIG_SRC_TAR) $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -S -uc -us -d
        lintian $(DSC)