]> git.proxmox.com Git - pve-cluster.git/blobdiff - Makefile
pvecm: fix cluster join over ssh with newer rsync
[pve-cluster.git] / Makefile
index aa58606cfb8ebf4d2527636fd3d1b5eb9937649c..42f75ffcb2770cf6c23fc3edaa13287d81c82d2c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,12 +15,9 @@ DEBS = $(DEB) $(DBG_DEB) $(LIB_DEB)
 
 all: $(DEB) $(DBG_DEB)
 
-cpgtest: cpgtest.c
-       gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libqb) -o cpgtest
-
 $(BUILDDIR):
        rm -rf $@ $@.tmp
-       cp -a data $@.tmp
+       cp -a src $@.tmp
        cp -a debian $@.tmp/
        echo "git clone git://git.proxmox.com/git/pve-cluster.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
        mv $@.tmp $@
@@ -36,13 +33,17 @@ $(DEB): $(BUILDDIR)
        cd $(BUILDDIR); dpkg-buildpackage -b -us -uc
        lintian $(DEB)
 
+sbuild: $(DSC)
+       sbuild $(DSC)
+
 .PHONY: dinstall
 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: