]> git.proxmox.com Git - pve-ha-manager.git/blame - Makefile
usage: add Usage::Static plugin
[pve-ha-manager.git] / Makefile
CommitLineData
e72075d0
TL
1include /usr/share/dpkg/pkg-info.mk
2include /usr/share/dpkg/architecture.mk
3
6cbcb5f7 4PACKAGE=pve-ha-manager
c0a900cc 5SIMPACKAGE=pve-ha-simulator
3a1c66d6 6
9cdf16b1 7GITVERSION:=$(shell git rev-parse HEAD)
9db3786b 8BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
6cbcb5f7 9
e72075d0 10DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
fe3781e8
TL
11DBG_DEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
12
e72075d0
TL
13DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
14SIMDEB=${SIMPACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
15SIMDSC=${SIMPACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
6cbcb5f7 16
5ff407da 17all: deb
6cbcb5f7 18
f9362515
TL
19${BUILDDIR}:
20 rm -rf ${BUILDDIR}
21 rsync -a src/ debian ${BUILDDIR}
22 echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
23
745fd425 24.PHONY: dinstall
fea8212c 25dinstall: $(DEB) $(SIMDEB)
c0a900cc 26 dpkg -i ${DEB} ${SIMDEB}
6cbcb5f7 27
fea8212c 28.PHONY: deb
5ff407da 29deb: ${DEB} ${SIMDEB}
fe3781e8 30${DEB} ${DBG_DEB}: ${BUILDDIR}
f9362515 31 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
6cbcb5f7 32 lintian ${DEB}
1116ca25 33 lintian ${SIMDEB}
3a1c66d6 34
f9362515
TL
35.PHONY: dsc
36dsc: ${DSC}
37${DSC}: ${BUILDDIR}
e72075d0 38 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
f9362515
TL
39 lintian ${DSC}
40
f501f7e3 41.PHONY: clean
ba878e35 42clean:
8cb12b9e 43 make -C src clean
31c1bd1f 44 rm -rf ${BUILDDIR} *.tar.gz *.dsc *.deb ${PACKAGE}-*.tar.gz *.changes *.buildinfo
6cbcb5f7
DM
45 find . -name '*~' -exec rm {} ';'
46
47.PHONY: distclean
48distclean: clean
f501f7e3 49
952a637d
DM
50.PHONY: upload
51upload: ${DEB} ${SIMDEB}
fe3781e8 52 tar cf - ${DEB} ${DBG_DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch ${DEB_BUILD_ARCH}
952a637d 53