]> git.proxmox.com Git - pve-cluster.git/blobdiff - Makefile
new helper initialize_cert_cache()
[pve-cluster.git] / Makefile
index 1bb1c65a2ef09ae10e2e9757c8e4df82a342c41d..13149c290b99ea9373f5e4f30e9bf2a6c8d2debd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,6 @@
-RELEASE=4.0
-
 PACKAGE=pve-cluster
 PKGVER=4.0
-PKGREL=1
+PKGREL=47
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
@@ -15,14 +13,15 @@ DBG_DEB=${PACKAGE}-dbg_${PKGVER}-${PKGREL}_${ARCH}.deb
 all: ${DEB} ${DBG_DEB}
 
 cpgtest: cpgtest.c
-       gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libcoroipcc) -o cpgtest
+       gcc -Wall cpgtest.c $(shell pkg-config --cflags --libs libcpg libqb) -o cpgtest
 
 .PHONY: dinstall
-dinstall: ${DEB} ${DBG_DEB}
-       dpkg -i ${DEB} ${DBG_DEB}
+dinstall: ${DEB}
+       dpkg -i ${DEB} 
 
-.PHONY: ${DEB} ${DBG_DEB}
-${DEB} ${DBG_DEB}:
+.PHONY: deb
+deb ${DEB} ${DBG_DEB}:
+       rm -f *.deb
        rm -rf build
        rsync -a --exclude .svn data/ build
        cp -a debian build/debian
@@ -34,13 +33,7 @@ ${DEB} ${DBG_DEB}:
 
 .PHONY: upload
 upload: ${DEB} ${DBG_DEB}
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
-       mkdir -p /pve/${RELEASE}/extra
-       rm -f /pve/${RELEASE}/extra/${PACKAGE}*.deb
-       rm -f /pve/${RELEASE}/extra/Packages*
-       cp ${DEB} ${DBG_DEB} /pve/${RELEASE}/extra
-       cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+       tar cf - ${DEB} ${DBG_DEB}| ssh repoman@repo.proxmox.com upload
 
 .PHONY: clean
 clean: