Fix 'makefile' for pylookup

This commit is contained in:
Junhui 2016-04-10 11:17:28 +08:00 committed by Fabien Dubosson
parent ddc831e061
commit 95be4bce44

View file

@ -1,8 +1,8 @@
VER := $(shell python --version 2>&1 | grep -o "[0-9].[0-9].[0-9]*")
MAJOR_VERSION = $(shell python -version 2>&1 | grep -o "Python [0-9]")
MAJOR_VERSION = $(shell python --version 2>&1 | grep -o "Python [0-9]" | grep -o "[0-9]")
ZIP := python-${VER}-docs-html.zip
URL := http://docs.python.org/py3k/archives/${ZIP}
URL2:= http://docs.python.org/archives/${ZIP}
URL := https://docs.python.org/2/archives/${ZIP}
URL2:= https://docs.python.org/3/archives/${ZIP}
ifneq (2,${MAJOR_VERSION})
URL := ${URL2}