]> git.proxmox.com Git - iproute2.git/blobdiff - Makefile
fix download target
[iproute2.git] / Makefile
index f8c916eac7959949d1fa86c5d054b2daae1ce794..d9e09b724036ada5ebff76354f2221bf571aac8c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,8 +24,7 @@ ${DEBS}: ${SRC}
 
 download:
        rm -rf iproute2-${VERSION} iproute2-${VERSION}.orig.tar.gz
-       git clone git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git iproute2-${VERSION}
-       cd iproute2-${VERSION}; git checkout v4.2.0;
+       git clone -b v${VERSION} --depth=1 git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git iproute2-${VERSION}
        tar czf iproute2-${VERSION}.orig.tar.gz iproute2-${VERSION}/
 
 .PHONY: upload