Skip to content
Browse files

Added MAJOR_REVISION, fixed choosing URL vs URL2.

  • Loading branch information...
1 parent 3202709 commit 3d3151a7c9950562e8df76b584d029827e81430e @misaka misaka committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 makefile
View
5 makefile
@@ -1,9 +1,10 @@
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 ($(findstring python-2, VER),)
+ifneq (2,${MAJOR_VERSION})
URL := ${URL2}
endif
@@ -15,4 +16,4 @@ download:
fi
./pylookup.py -u $(ZIP:.zip=)
-.PHONY: download
+.PHONY: download

0 comments on commit 3d3151a

Please sign in to comment.
Something went wrong with that request. Please try again.