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
justbur 6eab954afe Use + instead of ! for layer categories
Helm seems to treat "!" specially in pattern matching, so having a ! in
the pattern string when traversing directories is problematic. This
change fixes #2737, because as far as I can tell "+" has no special
meaning in a helm pattern.

Of course, we can choose a different character, but I'm fond of "+" as
representing "more layers here".
2015-09-11 00:13:51 -04:00

19 lines
512 B
Makefile

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