]> git.proxmox.com Git - pve-omping.git/blame - Makefile
d/control: fix priority-extra-is-replaced-by-priority-optional
[pve-omping.git] / Makefile
CommitLineData
d5a80540
TL
1include /usr/share/dpkg/pkg-info.mk
2include /usr/share/dpkg/architecture.mk
3
1d278ebd 4PACKAGE=omping
d5a80540
TL
5PKGDIR=${PACKAGE}-${DEB_VERSION_UPSTREAM}
6PKGSRC=${PACKAGE}_${DEB_VERSION_UPSTREAM}.orig.tar.gz
1d278ebd 7
eb6f294f 8GITVERSION:=$(shell cat .git/refs/heads/master)
1d278ebd 9
adc45da4
TL
10DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
11DBGDEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
12
13DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
14
15DEBS=${DEB} ${DBGDEB}
1d278ebd
DM
16
17all: ${DEBS}
18
adc45da4
TL
19.PHONY: ${PKGDIR}
20${PKGDIR}: ${PKGSRC}
1d278ebd 21 rm -rf ${PKGDIR}
ff28c99d
FG
22 tar xf ${PKGSRC}
23 rm -rf ${PKGDIR}/debian
1d278ebd 24 cp -a debian ${PKGDIR}/debian
eb6f294f 25 echo "git clone git://git.proxmox.com/git/pve-omping.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE
adc45da4
TL
26
27.PHONY: deb
28deb: ${DEBS}
29${DBGDEB}: ${DEB}
30${DEB}: ${PKGDIR}
14ad0275 31 cd ${PKGDIR}; dpkg-buildpackage -b -us -uc
adc45da4
TL
32 lintian ${DEB}
33
34.PHONY: dsc
35dsc: ${DSC}
36${DSC}: ${PKGDIR}
37 cd ${PKGDIR}; dpkg-buildpackage -S -us -uc -d
38 lintian ${DSC}
1d278ebd
DM
39
40.PHONY: upload
41upload: ${DEBS}
d5a80540 42 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist buster --arch ${DEB_BUILD_ARCH}
1d278ebd
DM
43
44distclean: clean
45
46.PHONY: clean
47clean:
d5a80540 48 rm -rf *~ *_${DEB_BUILD_ARCH}.deb *.changes *.dsc *.buildinfo ${PKGDIR}
1d278ebd
DM
49
50.PHONY: dinstall
adc45da4
TL
51dinstall: ${DEB}
52 dpkg -i ${DEB}