]> git.proxmox.com Git - proxmox-mini-journalreader.git/blobdiff - Makefile
buildsys: avoid circular dependency
[proxmox-mini-journalreader.git] / Makefile
index 0a35fe57cfed10679491179d83a076a59aa8825f..615c0778c6f470038c72078834e7390084ffd51e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,11 +21,11 @@ $(BUILDDIR): src debian
        echo "git clone git://git.proxmox.com/git/proxmox-mini-journal\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
 
 .PHONY: deb
-deb: $(DEBS)
-$(DEBS): $(DEB)
+deb: $(DEB)
+$(DBGDEB): $(DEB)
 $(DEB): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
-       lintian $(DEB)
+       lintian $(DEBS)
 
 .PHONY: dsc
 dsc: $(DSC)
@@ -44,5 +44,6 @@ clean:
        rm -rf $(PACKAGE)-[0-9]*/ *.deb *.buildinfo *.build *.changes *.dsc *.tar.*
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEBS)
-       tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist bullseye --arch $(DEB_BUILD_ARCH)
+       tar cf - $(DEBS)|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST) --arch $(DEB_BUILD_ARCH)