X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=d4619a17f7030448540cae3b99fd1a5a285a74f2;hb=449a03b7940cc3e67785811f8d675891590a5959;hp=d41c4aba3303121ad916eba79707f3ed57dc238a;hpb=a1c9bc716f053de779b33c1749bdc78646404e55;p=pve-ha-manager.git diff --git a/Makefile b/Makefile index d41c4ab..d4619a1 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,7 @@ -RELEASE=4.0 - -VERSION=0.9 +VERSION=2.0 PACKAGE=pve-ha-manager SIMPACKAGE=pve-ha-simulator -PKGREL=1 +PKGREL=4 GITVERSION:=$(shell cat .git/refs/heads/master) @@ -13,15 +11,16 @@ DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb SIMDEB=${SIMPACKAGE}_${VERSION}-${PKGREL}_all.deb -all: ${DEB} ${SIMDEB} +all: deb .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} ${SIMDEB} +${DEB}: rm -rf build mkdir build rsync -a src/ build @@ -45,7 +45,7 @@ deb ${DEB}: .PHONY: clean clean: make -C src clean - rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes + rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes *.buildinfo find . -name '*~' -exec rm {} ';' .PHONY: distclean @@ -53,12 +53,5 @@ distclean: clean .PHONY: upload upload: ${DEB} ${SIMDEB} - 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/${SIMPACKAGE}_*.deb - rm -f /pve/${RELEASE}/extra/Packages* - cp ${DEB} ${SIMDEB} /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} ${SIMDEB}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}