]> git.proxmox.com Git - libarchive-perl.git/commitdiff
buildsys: only call lintian for phony dsc target
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 16 Jun 2023 15:41:39 +0000 (17:41 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 23 Jun 2023 13:14:59 +0000 (15:14 +0200)
to prevent running twice for `sbuild` convenience target
inspired by 68a0d9585edf989a0f6aa6698f038dba1dc5da8c in pve-firewall
(and similar commits in other repositories)

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index a98142c99278d057dab22728e14bc6af550aee3e..d96438d3df854c0234a6d3e804a85793359b494d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,10 +31,12 @@ $(BUILDSRC):
        echo "git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout $(GITVERSION)" >$(BUILDSRC)/debian/SOURCE
 
 .PHONY: dsc
-dsc: $(DSC)
+dsc:
+       $(MAKE) $(DSC)
+       lintian $(DSC)
+
 $(DSC): $(BUILDSRC)
        cd $(BUILDSRC); dpkg-buildpackage -S -us -uc -d -nc
-       lintian $(DSC)
 
 .PHONY: sbuild
 sbuild: $(DSC)