]> git.proxmox.com Git - pve-ha-manager.git/blame - Makefile
fixup parse_sid call
[pve-ha-manager.git] / Makefile
CommitLineData
f9b7a596 1VERSION=2.0
6cbcb5f7 2PACKAGE=pve-ha-manager
c0a900cc 3SIMPACKAGE=pve-ha-simulator
c253924f 4PKGREL=5
3a1c66d6 5
9cdf16b1 6GITVERSION:=$(shell git rev-parse HEAD)
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
5ff407da 14all: deb
6cbcb5f7 15
745fd425 16.PHONY: dinstall
fea8212c 17dinstall: $(DEB) $(SIMDEB)
c0a900cc 18 dpkg -i ${DEB} ${SIMDEB}
6cbcb5f7 19
fea8212c 20.PHONY: deb
5ff407da 21deb: ${DEB} ${SIMDEB}
fea8212c 22${DEB}:
6cbcb5f7
DM
23 rm -rf build
24 mkdir build
ba878e35
DM
25 rsync -a src/ build
26 rsync -a debian/ build/debian
ba878e35 27 echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
1116ca25 28 cd build; dpkg-buildpackage -b -us -uc
6cbcb5f7 29 lintian ${DEB}
1116ca25 30 lintian ${SIMDEB}
3a1c66d6 31
f501f7e3 32.PHONY: clean
ba878e35 33clean:
8cb12b9e 34 make -C src clean
cf1ad777 35 rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes *.buildinfo
6cbcb5f7
DM
36 find . -name '*~' -exec rm {} ';'
37
38.PHONY: distclean
39distclean: clean
f501f7e3 40
952a637d
DM
41.PHONY: upload
42upload: ${DEB} ${SIMDEB}
4a70da7d 43 tar cf - ${DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
952a637d 44