aboutsummaryrefslogtreecommitdiff
path: root/Makefile.doc
diff options
context:
space:
mode:
authorJim Fehrle2019-03-22 21:44:51 -0700
committerJim Fehrle2019-03-26 11:10:07 -0700
commit63e7fb56923990d464278840f72b731997b20b01 (patch)
treea476ae5fff0eede88e444671ba1b2352c8659273 /Makefile.doc
parent1d68c24736b4cf68ac0c2f70122e3f3d28f0e876 (diff)
Fix make sphinx failure
Diffstat (limited to 'Makefile.doc')
-rw-r--r--Makefile.doc6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.doc b/Makefile.doc
index 5ac3ecb63d..e89a20393c 100644
--- a/Makefile.doc
+++ b/Makefile.doc
@@ -31,7 +31,13 @@ DVIPS:=dvips
HTMLSTYLE:=coqremote
# Sphinx-related variables
+OSNAME:=$(shell uname -o)
+ifeq ($(OSNAME),Cygwin)
+WIN_CURDIR:=$(shell cygpath -w $(CURDIR))
+SPHINXENV:=COQBIN="$(CURDIR)/bin/" COQLIB="$(WIN_CURDIR)"
+else
SPHINXENV:=COQBIN="$(CURDIR)/bin/" COQLIB="$(CURDIR)"
+endif
SPHINXOPTS= -j4
SPHINXWARNERROR ?= 1
ifeq ($(SPHINXWARNERROR),1)