]>
Commit | Line | Data |
---|---|---|
f9b7a596 | 1 | VERSION=2.0 |
6cbcb5f7 | 2 | PACKAGE=pve-ha-manager |
c0a900cc | 3 | SIMPACKAGE=pve-ha-simulator |
ffb4bc0d | 4 | PKGREL=8 |
3a1c66d6 | 5 | |
9cdf16b1 | 6 | GITVERSION:=$(shell git rev-parse HEAD) |
f9362515 | 7 | BUILDDIR ?= ${PACKAGE}-${VERSION} |
ac2039e8 | 8 | ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) |
6cbcb5f7 DM |
9 | |
10 | DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb | |
f9362515 | 11 | DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc |
ac2039e8 | 12 | SIMDEB=${SIMPACKAGE}_${VERSION}-${PKGREL}_all.deb |
f9362515 | 13 | SIMDSC=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb |
6cbcb5f7 | 14 | |
5ff407da | 15 | all: deb |
6cbcb5f7 | 16 | |
f9362515 TL |
17 | ${BUILDDIR}: |
18 | rm -rf ${BUILDDIR} | |
19 | rsync -a src/ debian ${BUILDDIR} | |
20 | echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE | |
21 | ||
745fd425 | 22 | .PHONY: dinstall |
fea8212c | 23 | dinstall: $(DEB) $(SIMDEB) |
c0a900cc | 24 | dpkg -i ${DEB} ${SIMDEB} |
6cbcb5f7 | 25 | |
fea8212c | 26 | .PHONY: deb |
5ff407da | 27 | deb: ${DEB} ${SIMDEB} |
f9362515 TL |
28 | ${DEB}: ${BUILDDIR} |
29 | cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc | |
6cbcb5f7 | 30 | lintian ${DEB} |
1116ca25 | 31 | lintian ${SIMDEB} |
3a1c66d6 | 32 | |
f9362515 TL |
33 | .PHONY: dsc |
34 | dsc: ${DSC} | |
35 | ${DSC}: ${BUILDDIR} | |
36 | cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc | |
37 | lintian ${DSC} | |
38 | ||
f501f7e3 | 39 | .PHONY: clean |
ba878e35 | 40 | clean: |
8cb12b9e | 41 | make -C src clean |
f9362515 | 42 | rm -rf ${BUILDDIR} *.dsc *.deb ${PACKAGE}-*.tar.gz *.changes *.buildinfo |
6cbcb5f7 DM |
43 | find . -name '*~' -exec rm {} ';' |
44 | ||
45 | .PHONY: distclean | |
46 | distclean: clean | |
f501f7e3 | 47 | |
952a637d DM |
48 | .PHONY: upload |
49 | upload: ${DEB} ${SIMDEB} | |
4a70da7d | 50 | tar cf - ${DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} |
952a637d | 51 |