dinstall: $(DEB)
dpkg -i $(DEB)
-$(BUILDDIR):
- rm -rf $(BUILDDIR)
- rsync -a src/ debian $(BUILDDIR)
- echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
+$(BUILDDIR): src debian
+ rm -rf $(BUILDDIR) $(BUILDDIR).tmp; mkdir $(BUILDDIR).tmp
+ cp -t $(BUILDDIR).tmp -a debian src/*
+ echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout $(GITVERSION)" >$(BUILDDIR).tmp/debian/SOURCE
+ mv $(BUILDDIR).tmp $(BUILDDIR)
.PHONY: deb
deb: $(DEB)
.PHONY: clean
clean:
$(MAKE) -C src clean
- rm -rf $(BUILDDIR)
- rm -f *.deb *.changes *.buildinfo *.dsc *.tar.?z
+ rm -rf $(PACKAGE)-[0-9]*/
+ rm -f *.deb *.changes *.build *.buildinfo *.dsc $(PACKAGE)*.tar*
.PHONY: distclean
distclean: clean
.PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
upload: $(DEB)
- tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
+ tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)