]> git.proxmox.com Git - libxdgmime-perl.git/commitdiff
buildsys: only run lintian for phony dsc target
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 16 Jun 2023 15:35:24 +0000 (17:35 +0200)
committerStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 16 Jun 2023 15:38:22 +0000 (17:38 +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>
Makefile

index 1af13adbb45e1dd2ee87c82f4671f385f13997bd..ec2273ab2f4aeb8befa7aeb9feb566d89a45f2b3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,10 +27,12 @@ $(BUILDSRC):
        cp -a debian $(BUILDSRC)
 
 .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)