]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - Makefile
sim: don't install real resources
[pve-ha-manager.git] / Makefile
index 5e39f4b0e3040129adcdf1159c1b42824f78bc2c..b406f3fea7d7f9272fe2dd9d48412a8653e66dd3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
 VERSION=2.0
 PACKAGE=pve-ha-manager
 SIMPACKAGE=pve-ha-simulator
-PKGREL=3
+PKGREL=5
 
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
@@ -11,9 +11,9 @@ DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 SIMDEB=${SIMPACKAGE}_${VERSION}-${PKGREL}_all.deb
 
 
-all: ${DEB} ${SIMDEB}
+all: deb
 
-.PHONY: dinstall simdeb
+.PHONY: dinstall
 dinstall: $(DEB) $(SIMDEB)
        dpkg -i ${DEB} ${SIMDEB}
 
@@ -31,7 +31,7 @@ ${SIMDEB}:
        lintian ${SIMDEB}
 
 .PHONY: deb
-deb: ${DEB}
+deb: ${DEB} ${SIMDEB}
 ${DEB}:
        rm -rf build
        mkdir build
@@ -45,7 +45,7 @@ ${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