]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - Makefile
bump version to 2.0-1
[pve-ha-manager.git] / Makefile
index 4fa6202a3286392b31fec836fca246f3b6cddab8..166aceec3dd94b9c426081aa7d63e04b106c9c01 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,4 @@
-RELEASE=4.0
-
-VERSION=0.1
+VERSION=2.0
 PACKAGE=pve-ha-manager
 SIMPACKAGE=pve-ha-simulator
 PKGREL=1
@@ -16,12 +14,13 @@ SIMDEB=${SIMPACKAGE}_${VERSION}-${PKGREL}_all.deb
 all: ${DEB} ${SIMDEB}
 
 .PHONY: dinstall simdeb
-dinstall: deb simdeb
+dinstall: $(DEB) $(SIMDEB)
        dpkg -i ${DEB} ${SIMDEB}
 
 
-.PHONY: simdeb ${SIMDEB}
-simdeb ${SIMDEB}:
+.PHONY: simdeb
+simdeb: ${SIMDEB}
+${SIMDEB}:
        rm -rf build
        mkdir build
        rsync -a src/ build
@@ -31,8 +30,9 @@ simdeb ${SIMDEB}:
        cd build; dpkg-buildpackage -rfakeroot -b -us -uc
        lintian ${SIMDEB}
 
-.PHONY: deb ${DEB}
-deb ${DEB}:
+.PHONY: deb
+deb: ${DEB}
+${DEB}:
        rm -rf build
        mkdir build
        rsync -a src/ build
@@ -44,9 +44,14 @@ deb ${DEB}:
 
 .PHONY: clean
 clean:
+       make -C src clean
        rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes 
        find . -name '*~' -exec rm {} ';'
 
 .PHONY: distclean
 distclean: clean
 
+.PHONY: upload
+upload: ${DEB} ${SIMDEB}
+       tar cf - ${DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
+