]> git.proxmox.com Git - proxmox-mini-journalreader.git/blobdiff - Makefile
buildsys: include debug package on upload
[proxmox-mini-journalreader.git] / Makefile
index 33cd969db4df0a6d0c21212479ff53782737aa47..37f5d2490913cb95ca0b3264df2c575d3f0bde18 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,8 @@ BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
 
 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
 DBGDEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
+DEBS=${DEB} ${DBGDEB}
+
 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
 all: $(DEB)
@@ -19,7 +21,8 @@ $(BUILDDIR): src debian
        echo "git clone git://git.proxmox.com/git/proxmox-mini-journal\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
 
 .PHONY: deb
-deb: $(DEB)
+deb: $(DEBS)
+$(DEBS): $(DEB)
 $(DEB): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
        lintian $(DEB)
@@ -38,5 +41,5 @@ clean:
        rm -rf $(BUILDDIR) *.deb *.buildinfo *.changes *.dsc *.tar.gz
 
 .PHONY: upload
-upload: ${DEB}
-       tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye --arch ${DEB_BUILD_ARCH}
+upload: ${DEBS}
+       tar cf - ${DEBS}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye --arch ${DEB_BUILD_ARCH}