]> git.proxmox.com Git - iproute2.git/blob - Makefile
adopt/fix Makefile for our build environment
[iproute2.git] / Makefile
1 RELEASE=4.0
2
3 VERSION=4.2.0
4 PKGREL=1
5
6 DIR=iproute2-${VERSION}
7 SRC=iproute2-${VERSION}.orig.tar.gz
8
9 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
10
11 DEBS=iproute2_${VERSION}-${PKGREL}_${ARCH}.deb
12
13 all: ${DEBS}
14 echo ${DEBS}
15
16 ${DEBS}: ${SRC}
17 rm -rf ${DIR}
18 tar xf ${SRC}
19 cp -a debian ${DIR}/debian
20 cd ${DIR}; dpkg-buildpackage -rfakeroot -b -us -uc
21
22
23 download:
24 rm -rf iproute2-${VERSION} iproute2-${VERSION}.orig.tar.gz
25 git clone git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git iproute2-${VERSION}
26 cd iproute2-${VERSION}; git checkout v4.2.0;
27 tar czf iproute2-${VERSION}.orig.tar.gz iproute2-${VERSION}/
28
29 .PHONY: upload
30 upload: ${DEBS}
31 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
32 mkdir -p /pve/${RELEASE}/extra
33 rm -f /pve/${RELEASE}/extra/iproute2_*.deb
34 rm -f /pve/${RELEASE}/extra/Packages*
35 cp ${DEBS} /pve/${RELEASE}/extra
36 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
37 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
38
39 .PHONY: clean
40 clean:
41 rm -rf *~ debian/*~ *.changes *.dsc ${DIR} iproute2_${VERSION}.orig.tar.gz *.deb
42
43 .PHONY: dinstall
44 dinstall: ${DEBS}
45 dpkg -i ${DEBS}