]> git.proxmox.com Git - pve-apiclient.git/commitdiff
buildsys: cleanup deb/dsc targets
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 May 2023 14:22:19 +0000 (16:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 May 2023 14:22:19 +0000 (16:22 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 11e1c6b06bfe2c17cf1731741871956866e4cbb3..ae35e740c4fb62c5658aac7cff6f40a05f5c04cf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,6 @@ GITVERSION:=$(shell git rev-parse HEAD)
 
 all: $(DEB)
 
-.PHONY: $(BUILDSRC)
 $(BUILDSRC):
        rm -rf $@ $@.tmp
        cp -a src $@.tmp
@@ -24,12 +23,13 @@ $(BUILDSRC):
 
 .PHONY: deb
 deb $(DEB): $(BUILDSRC)
-       cd $(BUILDSRC); dpkg-buildpackage -rfakeroot -b -us -uc
+       cd $(BUILDSRC); dpkg-buildpackage -b -us -uc
        lintian $(DEB)
 
 .PHONY: dsc
-dsc: $(BUILDSRC)
-       cd $(BUILDSRC); dpkg-buildpackage -S -us -uc -d -nc
+dsc: $(DSC)
+$(DSC): $(BUILDSRC)
+       cd $(BUILDSRC); dpkg-buildpackage -S -us -uc -d
        lintian $(DSC)
 
 .PHONY: upload