Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 513 Bytes
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]")
ZIP := python-${VER}-docs-html.zip
URL := http://docs.python.org/py3k/archives/${ZIP}
URL2:= http://docs.python.org/archives/${ZIP}
ifneq (2,${MAJOR_VERSION})
URL := ${URL2}
endif
download:
@if [ ! -e ${ZIP} ] ; then \
echo "Downloading ${URL}"; \
wget ${URL}; \
unzip ${ZIP}; \
fi
./pylookup.py -u $(ZIP:.zip=)
.PHONY: download