install -d $(DOCDIR)
$(BUILDDIR):
- rm -rf $(BUILDDIR)
- rsync -a * $(BUILDDIR)
- echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
+ rm -rf $@.tmp $@
+ rsync -a * $@.tmp
+ echo "git clone git://git.proxmox.com/git/pve-zsync.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
+ mv $@.tmp $@
.PHONY: deb
deb: $(DEB)
.PHONY: dsc
dsc: $(DSC)
$(DSC):$(BUILDDIR)
- cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d -nc
+ cd $(BUILDDIR); dpkg-buildpackage -S -us -uc -d
lintian $(DSC)
+sbuild: $(DSC)
+ sbuild $(DSC)
+
.PHONY: clean
clean:
- rm -rf $(BUILDDIR) *.deb *.dsc $(PACKAGE)*.tar.gz *.buildinfo *.changes
+ rm -rf $(PACKAGE)-[0-9]*/ *.deb *.dsc $(PACKAGE)*.tar.?z *.build *.buildinfo *.changes
find . -name '*~' -exec rm {} ';'
.PHONY: distclean
.PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
upload: $(DEB)
- tar cf - $(DEB) | ssh repoman@repo.proxmox.com upload --product pve --dist bullseye
+ tar cf - $(DEB) | ssh repoman@repo.proxmox.com upload --product pve --dist $(UPLOAD_DIST)