X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=doc%2FMakefile.local;h=5dc1cad489cc4722252962d4dc70fbd5aa20de5d;hp=e7d0bac8f3fbb3914a17bc209dc5dd077a0d3e15;hb=a7a683b120ea8be1fe619d12a7d8a201de0652e6;hpb=f5db7ad7d243785c274a99734c681e69d13313d0 diff --git a/doc/Makefile.local b/doc/Makefile.local index e7d0bac8..5dc1cad4 100644 --- a/doc/Makefile.local +++ b/doc/Makefile.local @@ -7,8 +7,7 @@ SPHINXOPTS := -q SPHINXBUILD = sphinx-build DOCBUILDDIR := $(dir)/_build -prerst2man := python $(srcdir)/$(dir)/prerst2man.py -mkdocdeps := python $(srcdir)/$(dir)/mkdocdeps.py +mkdocdeps := $(PYTHON) $(srcdir)/$(dir)/mkdocdeps.py # Internal variables. ALLSPHINXOPTS := -d $(DOCBUILDDIR)/doctrees $(SPHINXOPTS) $(srcdir)/$(dir) @@ -50,20 +49,18 @@ ifeq ($(HAVE_SPHINX),1) mkdir -p $(DOCBUILDDIR)/man/man$${section}; \ mv $(DOCBUILDDIR)/man/*.$${section} $(DOCBUILDDIR)/man/man$${section}; \ done -else ifeq ($(HAVE_RST2MAN),1) - $(prerst2man) $(srcdir)/doc $(DOCBUILDDIR)/man else @echo "Fatal: build dependency fail." @false endif - touch ${MAN_ROFF_FILES} $@ + touch $@ install-man: install-apidocs ifeq ($(HAVE_DOXYGEN),1) MAN_GZIP_FILES += ${APIMAN}.gz apidocs: $(APIMAN) -install-apidocs: apidocs +install-apidocs: ${APIMAN}.gz mkdir -p "$(DESTDIR)$(mandir)/man3" install -m0644 $(DOCBUILDDIR)/man/man3/*.3.gz $(DESTDIR)/$(mandir)/man3 @@ -79,10 +76,10 @@ endif # Do not try to build or install man pages if a man page converter is # not available. -ifeq ($(HAVE_SPHINX)$(HAVE_RST2MAN),00) +ifeq ($(HAVE_SPHINX),0) build-man: install-man: - @echo "No sphinx or rst2man, will not install man pages." + @echo "No sphinx, will not install man pages." else build-man: ${MAN_GZIP_FILES} install-man: ${MAN_GZIP_FILES}