]>
Commit | Line | Data |
---|---|---|
f9b7a596 | 1 | VERSION=2.0 |
6cbcb5f7 | 2 | PACKAGE=pve-ha-manager |
c0a900cc | 3 | SIMPACKAGE=pve-ha-simulator |
b65075d6 | 4 | PKGREL=7 |
3a1c66d6 | 5 | |
9cdf16b1 | 6 | GITVERSION:=$(shell git rev-parse HEAD) |
3a1c66d6 | 7 | |
ac2039e8 | 8 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) |
6cbcb5f7 DM |
9 | |
10 | DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb | |
ac2039e8 | 11 | SIMDEB=${SIMPACKAGE}_${VERSION}-${PKGREL}_all.deb |
6cbcb5f7 DM |
12 | |
13 | ||
5ff407da | 14 | all: deb |
6cbcb5f7 | 15 | |
745fd425 | 16 | .PHONY: dinstall |
fea8212c | 17 | dinstall: $(DEB) $(SIMDEB) |
c0a900cc | 18 | dpkg -i ${DEB} ${SIMDEB} |
6cbcb5f7 | 19 | |
fea8212c | 20 | .PHONY: deb |
5ff407da | 21 | deb: ${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 | 33 | clean: |
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 | |
39 | distclean: clean | |
f501f7e3 | 40 | |
952a637d DM |
41 | .PHONY: upload |
42 | upload: ${DEB} ${SIMDEB} | |
4a70da7d | 43 | tar cf - ${DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} |
952a637d | 44 |