]> git.proxmox.com Git - iproute2.git/blame - Makefile
bump version to 4.13.0-1
[iproute2.git] / Makefile
CommitLineData
cd0d3ac3 1VERSION=4.13.0
cf60e316 2PKGREL=1
c9fc61fd 3
3cf71090 4DIR=iproute2-${VERSION}
cd0d3ac3 5SRC=iproute2-${VERSION}.orig.tar.xz
3cf71090 6
c9fc61fd 7ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
3cf71090 8
f00001fe
DM
9DEBS= \
10 iproute2-doc_${VERSION}-${PKGREL}_all.deb \
11 iproute2_${VERSION}-${PKGREL}_${ARCH}.deb
3cf71090
DM
12
13all: ${DEBS}
14 echo ${DEBS}
15
7550f837
WB
16.PHONY: deb
17${DEBS} deb: ${SRC}
3cf71090
DM
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
24download:
cd0d3ac3 25 rm -rf iproute2-${VERSION} $(SRC)
365d86c5 26 git clone -b v${VERSION} --depth=1 git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git iproute2-${VERSION}
cd0d3ac3 27 tar cJf $(SRC) iproute2-${VERSION}/
3cf71090
DM
28
29.PHONY: upload
30upload: ${DEBS}
ced20272 31 tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
3cf71090
DM
32
33.PHONY: clean
34clean:
cd0d3ac3 35 rm -rf *~ debian/*~ *.changes *.dsc ${DIR} *.deb *.buildinfo
3cf71090
DM
36
37.PHONY: dinstall
38dinstall: ${DEBS}
39 dpkg -i ${DEBS}