Correct implementation of --disable-stdlib-manpages

master
David Allsopp 2020-02-26 15:07:17 +00:00
parent dce967139c
commit 9c5d7c1112
3 changed files with 7 additions and 9 deletions

View File

@ -328,6 +328,10 @@ Working version
(Florian Angeletti, Stefan Muenzel and Thomas Refis, review by Gabriel Scherer
and Thomas Refis)
- #9335: actually have --disable-stdlib-manpages not build the manpages
(implementation conflicted with #8837 which wasn't picked up in review)
(David Allsopp, review by Florian Angeletti and Sébastien Hinderer)
- #9343: Re-enable `-short-paths` for some error messages
(Leo White, review by Florian Angeletti)

View File

@ -233,7 +233,7 @@ opt.opt: checknative
$(MAKE) otherlibrariesopt
$(MAKE) ocamllex.opt ocamltoolsopt ocamltoolsopt.opt $(OCAMLDOC_OPT) \
$(OCAMLTEST_OPT)
ifneq "$(WITH_OCAMLDOC)" ""
ifeq "$(WITH_OCAMLDOC)-$(STDLIB_MANPAGES)" "ocamldoc-true"
$(MAKE) manpages
endif
@ -264,7 +264,7 @@ all: coreall
$(MAKE) ocaml
$(MAKE) otherlibraries $(WITH_DEBUGGER) $(WITH_OCAMLDOC) \
$(WITH_OCAMLTEST)
ifneq "$(WITH_OCAMLDOC)" ""
ifeq "$(WITH_OCAMLDOC)-$(STDLIB_MANPAGES)" "ocamldoc-true"
$(MAKE) manpages
endif

View File

@ -185,14 +185,8 @@ LIBCMOFILES = $(CMOFILES)
LIBCMXFILES = $(LIBCMOFILES:.cmo=.cmx)
LIBCMIFILES = $(LIBCMOFILES:.cmo=.cmi)
ifeq "$(STDLIB_MANPAGES)" "true"
DOCS_TARGET = manpages
else
DOCS_TARGET =
endif
.PHONY: all
all: lib exe generators $(DOCS_TARGET)
all: lib exe generators
.PHONY: exe
exe: $(OCAMLDOC)