This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/python/local/pylookup/makefile

20 lines
533 B
Makefile
Raw Normal View History

2015-12-03 17:29:34 +00:00
VER := $(shell python --version 2>&1 | grep -o "[0-9].[0-9].[0-9]*")
2016-04-10 03:17:28 +00:00
MAJOR_VERSION = $(shell python --version 2>&1 | grep -o "Python [0-9]" | grep -o "[0-9]")
ZIP := python-${VER}-docs-html.zip
2016-04-10 03:17:28 +00:00
URL := https://docs.python.org/2/archives/${ZIP}
URL2:= https://docs.python.org/3/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