]> git.proxmox.com Git - lxc.git/commitdiff
buildsys: fix dsc target, generate source tarball manually
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 May 2023 08:21:18 +0000 (10:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 5 May 2023 10:17:07 +0000 (12:17 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index c6fdabcf2a665b0964f48eb7b475c9d1ddc7181f..d3e200de8f8556db52015f5fdf102ff3ff053cea 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ DEB2=$(PACKAGE)-dev_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb \
      $(PACKAGE)-dbgsym_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb
 DEBS=$(DEB1) $(DEB2)
 DSC=$(DEB_BASE).dsc
-TARGZ=$(DEB_BASE).tar.gz
+ORIG_SRC_TAR=$(PACKAGE)_$(DEB_VERSION_UPSTREAM).orig.tar.gz
 
 all: $(DEBS)
        echo $(DEBS)
@@ -39,9 +39,12 @@ $(DEB1): $(BUILDSRC)
        cd $(BUILDSRC); dpkg-buildpackage -b -us -uc
        lintian $(DEBS)
 
+$(ORIG_SRC_TAR): $(BUILDSRC)
+       tar czf $(ORIG_SRC_TAR) -C $(BUILDSRC) .
+
 .PHONY: dsc
-dsc $(TARGZ): $(DSC)
-$(DSC): $(BUILDSRC)
+dsc: $(DSC)
+$(DSC): $(ORIG_SRC_TAR)
        rm -f *.dsc
        cd $(BUILDSRC); dpkg-buildpackage -S -us -uc -d -nc
        lintian $(DSC)