]> git.proxmox.com Git - corosync-pve.git/blobdiff - Makefile
improve cleanup target
[corosync-pve.git] / Makefile
index f16b6262061a8ff6c676431172b2a5d9d5e2a236..894a0401cafc63260f1ba2526bf37dd39cb6e14f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
-RELEASE=3.0
+RELEASE=4.0
 
 # source from http://www.corosync.org
 
-CSVERSION=1.4.6
+CSVERSION=2.3.4
 CSRELEASE=1
 CSDIR=corosync-${CSVERSION}
-CSSRC=corosync-${CSVERSION}.orig.tar.gz
+CSSRC=corosync-${CSVERSION}.tar.gz
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
@@ -27,6 +27,11 @@ ${DEBS}: ${CSSRC}
 
        cd ${CSDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
 
+.PHONY: download
+download:
+       rm -f ${CSSRC}
+       wget http://build.clusterlabs.org/corosync/releases/${CSSRC}
+
 .PHONY: upload
 upload: ${DEBS}
        umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
@@ -43,6 +48,7 @@ distclean: clean
 .PHONY: clean
 clean:
        rm -rf *_${ARCH}.deb *.changes *.dsc ${CSDIR} corosync_${CSVERSION}-${CSRELEASE}.tar.gz
+       find . -name '*~' -exec rm {} ';'
 
 .PHONY: dinstall
 dinstall: ${DEBS}