]> git.proxmox.com Git - pve-omping.git/blob - Makefile
buildsys: use repoman for make upload
[pve-omping.git] / Makefile
1 RELEASE=4.0
2
3 PKGVERSION=0.0.4
4 PKGRELEASE=2
5 PACKAGE=omping
6 PKGDIR=${PACKAGE}-${PKGVERSION}
7 PKGSRC=${PACKAGE}_${PKGVERSION}.orig.tar.gz
8
9 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
10 GITVERSION:=$(shell cat .git/refs/heads/master)
11
12 DEBS= ${PACKAGE}_${PKGVERSION}-${PKGRELEASE}_${ARCH}.deb
13
14 all: ${DEBS}
15
16 ${DEBS}: ${PKGSRC}
17 rm -rf ${PKGDIR}
18 tar xf ${PKGSRC}
19 cp -a debian ${PKGDIR}/debian
20 echo "git clone git://git.proxmox.com/git/pve-omping.git\\ngit checkout ${GITVERSION}" > ${PKGDIR}/debian/SOURCE
21 cd ${PKGDIR}; dpkg-buildpackage -rfakeroot -b -us -uc
22
23 .PHONY: upload
24 upload: ${DEBS}
25 tar -cf - ${DEBS} | ssh repoman@repo.proxmox.com upload
26
27 distclean: clean
28
29 .PHONY: clean
30 clean:
31 rm -rf *~ *_${ARCH}.deb *.changes *.dsc ${PKGDIR}
32
33 .PHONY: dinstall
34 dinstall: ${DEBS}
35 dpkg -i ${DEBS}