]> git.proxmox.com Git - pve-cluster.git/blobdiff - Makefile
setup: split generation of local (i.e. non-pmxcfs) files out into helper
[pve-cluster.git] / Makefile
index 9ed5f7c50852e02bf101221a02a6626ba07c02dd..3c4ecec7f1f7cec58303e96befeba403e1127651 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,10 +22,13 @@ $(BUILDDIR):
        echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
        mv $@.tmp $@
 
-dsc: $(DSC)
+dsc:
+       rm -rf $(BUILDDIR) $(DSC)
+       $(MAKE) $(DSC)
+       lintian $(DSC)
+
 $(DSC): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
-       lintian $(DSC)
 
 .PHONY: deb
 deb $(DBG_DEB) $(LIB_DEB): $(DEB)
@@ -41,8 +44,9 @@ dinstall: $(DEB) $(LIB_DEB)
        dpkg -i $^
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEBS)
-       tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch $(DEB_BUILD_ARCH)
+       tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST) --arch $(DEB_BUILD_ARCH)
 
 .PHONY: clean
 clean: