summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-07-14 11:47:19 -0500
committermattip <matti.picus@gmail.com>2019-07-14 14:32:10 -0500
commitaf5b52b75687ef170bf17d7fa6ecc71718a92ae6 (patch)
tree19ee8dd3f69b3c90629a95698836b62308d1ca37 /doc
parent5b0069c08d00e871d74c6533e0b0eeb3107e8f70 (diff)
downloadnumpy-af5b52b75687ef170bf17d7fa6ecc71718a92ae6.tar.gz
BUILD: adapt "make version-check" to "make dist"
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile35
1 files changed, 18 insertions, 17 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 842d2ad13..c7ebd515b 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -10,10 +10,6 @@
PYVER:=$(shell python3 -c 'from sys import version_info as v; print("{0}.{1}".format(v[0], v[1]))')
PYTHON = python$(PYVER)
-NUMPYVER:=$(shell python3 -c "import numpy; print(numpy.version.git_revision[:10])")
-GITVER ?= $(shell cd ..; python3 -c "from setup import git_version; \
- print(git_version()[:10])")
-
# You can set these variables from the command line.
SPHINXOPTS ?=
SPHINXBUILD ?= LANG=C sphinx-build
@@ -49,18 +45,6 @@ clean:
-rm -rf build/*
find . -name generated -type d -prune -exec rm -rf "{}" ";"
-version-check:
-ifeq "$(GITVER)" "Unknown"
- # @echo sdist build with unlabeled sources
-else ifneq ($(NUMPYVER),$(GITVER))
- @echo installed numpy $(NUMPYVER) != current repo git version \'$(GITVER)\'
- @echo use '"make dist"' or '"GITVER=$(NUMPYVER) make $(MAKECMDGOALS) ..."'
- @exit 1
-else
- # for testing
- # @echo installed numpy $(NUMPYVER) matches git version $(GITVER); exit 1
-endif
-
gitwash-update:
rm -rf source/dev/gitwash
install -d source/dev/gitwash
@@ -86,7 +70,24 @@ INSTALL_DIR = $(CURDIR)/build/inst-dist
INSTALL_PPH = $(INSTALL_DIR)/lib/python$(PYVER)/site-packages:$(INSTALL_DIR)/local/lib/python$(PYVER)/site-packages:$(INSTALL_DIR)/lib/python$(PYVER)/dist-packages:$(INSTALL_DIR)/local/lib/python$(PYVER)/dist-packages
UPLOAD_DIR=/srv/docs_scipy_org/doc/numpy-$(RELEASE)
-DIST_VARS=SPHINXBUILD="LANG=C PYTHONPATH=$(INSTALL_PPH) python$(PYVER) `which sphinx-build`" PYTHON="PYTHONPATH=$(INSTALL_PPH) python$(PYVER)" SPHINXOPTS="$(SPHINXOPTS)"
+DIST_VARS=SPHINXBUILD="LANG=C PYTHONPATH=$(INSTALL_PPH) python$(PYVER) `which sphinx-build`" PYTHON="PYTHONPATH=$(INSTALL_PPH) python$(PYVER)"
+
+NUMPYVER:=$(shell $(PYTHON) -c "import numpy; print(numpy.version.git_revision[:10])")
+GITVER ?= $(shell cd ..; $(PYTHON) -c "from setup import git_version; \
+ print(git_version()[:10])")
+
+version-check:
+ifeq "$(GITVER)" "Unknown"
+ # @echo sdist build with unlabeled sources
+else ifneq ($(NUMPYVER),$(GITVER))
+ @echo installed numpy $(NUMPYVER) != current repo git version \'$(GITVER)\'
+ @echo use '"make dist"' or '"GITVER=$(NUMPYVER) make $(MAKECMDGOALS) ..."'
+ @exit 1
+else
+ # for testing
+ # @echo installed numpy $(NUMPYVER) matches git version $(GITVER); exit 1
+endif
+
dist:
make $(DIST_VARS) real-dist