]> git.proxmox.com Git - pve-ha-manager.git/blame - Makefile
HA::Status: provide better/faster feedback to users
[pve-ha-manager.git] / Makefile
CommitLineData
822e3a69 1VERSION=1.0
6cbcb5f7 2PACKAGE=pve-ha-manager
c0a900cc 3SIMPACKAGE=pve-ha-simulator
7b4fc061 4PKGREL=36
3a1c66d6 5
ba878e35 6GITVERSION:=$(shell cat .git/refs/heads/master)
3a1c66d6 7
ac2039e8 8ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
6cbcb5f7
DM
9
10DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
ac2039e8 11SIMDEB=${SIMPACKAGE}_${VERSION}-${PKGREL}_all.deb
6cbcb5f7
DM
12
13
c0a900cc 14all: ${DEB} ${SIMDEB}
6cbcb5f7 15
c0a900cc
DM
16.PHONY: dinstall simdeb
17dinstall: deb simdeb
18 dpkg -i ${DEB} ${SIMDEB}
6cbcb5f7 19
c0a900cc
DM
20
21.PHONY: simdeb ${SIMDEB}
22simdeb ${SIMDEB}:
23 rm -rf build
24 mkdir build
ba878e35
DM
25 rsync -a src/ build
26 rsync -a simdebian/ build/debian
27 cp changelog.Debian build/debian/changelog
28 echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
29 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
c0a900cc 30 lintian ${SIMDEB}
6cbcb5f7
DM
31
32.PHONY: deb ${DEB}
33deb ${DEB}:
34 rm -rf build
35 mkdir build
ba878e35
DM
36 rsync -a src/ build
37 rsync -a debian/ build/debian
38 cp changelog.Debian build/debian/changelog
39 echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
40 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
6cbcb5f7 41 lintian ${DEB}
3a1c66d6 42
f501f7e3 43.PHONY: clean
ba878e35 44clean:
8cb12b9e 45 make -C src clean
ba878e35 46 rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes
6cbcb5f7
DM
47 find . -name '*~' -exec rm {} ';'
48
49.PHONY: distclean
50distclean: clean
f501f7e3 51
952a637d
DM
52.PHONY: upload
53upload: ${DEB} ${SIMDEB}
8a126e58 54 tar cf - ${DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com upload
952a637d 55