]> git.proxmox.com Git - iproute2.git/blob - Makefile
bump version to 4.13.0-1
[iproute2.git] / Makefile
1 VERSION=4.13.0
2 PKGREL=1
3
4 DIR=iproute2-${VERSION}
5 SRC=iproute2-${VERSION}.orig.tar.xz
6
7 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
8
9 DEBS= \
10 iproute2-doc_${VERSION}-${PKGREL}_all.deb \
11 iproute2_${VERSION}-${PKGREL}_${ARCH}.deb
12
13 all: ${DEBS}
14 echo ${DEBS}
15
16 .PHONY: deb
17 ${DEBS} deb: ${SRC}
18 rm -rf ${DIR}
19 tar xf ${SRC}
20 cp -a debian ${DIR}/debian
21 cd ${DIR}; dpkg-buildpackage -rfakeroot -b -us -uc
22
23
24 download:
25 rm -rf iproute2-${VERSION} $(SRC)
26 git clone -b v${VERSION} --depth=1 git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git iproute2-${VERSION}
27 tar cJf $(SRC) iproute2-${VERSION}/
28
29 .PHONY: upload
30 upload: ${DEBS}
31 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
32
33 .PHONY: clean
34 clean:
35 rm -rf *~ debian/*~ *.changes *.dsc ${DIR} *.deb *.buildinfo
36
37 .PHONY: dinstall
38 dinstall: ${DEBS}
39 dpkg -i ${DEBS}