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 $@
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: