mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
doc: replace phony target with variable
Depending on a phony target seems like a good way to always trigger a recipe.
This commit is contained in:
parent
ed03babd05
commit
d825847b52
1 changed files with 6 additions and 4 deletions
|
@ -35,7 +35,7 @@ endif
|
||||||
|
|
||||||
INFO_INFO_FILES := $(INFO_TEXI_FILES:.texi=.info)
|
INFO_INFO_FILES := $(INFO_TEXI_FILES:.texi=.info)
|
||||||
|
|
||||||
.PHONY: sphinx-html sphinx-texinfo sphinx-info doc-prereqs
|
.PHONY: sphinx-html sphinx-texinfo sphinx-info
|
||||||
|
|
||||||
.PHONY: install-man build-man apidocs install-apidocs
|
.PHONY: install-man build-man apidocs install-apidocs
|
||||||
|
|
||||||
|
@ -47,18 +47,20 @@ $(DOCBUILDDIR)/.roff.stamp $(DOCBUILDDIR)/.html.stamp $(DOCBUILDDIR)/.texi.stamp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_PYTHON3_CFFI),1)
|
ifeq ($(HAVE_PYTHON3_CFFI),1)
|
||||||
doc-prereqs: python-cffi-bindings
|
DOC_PREREQS=bindings/python-cffi.stamp
|
||||||
|
else
|
||||||
|
DOC_PREREQS=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
sphinx-html: $(DOCBUILDDIR)/.html.stamp
|
sphinx-html: $(DOCBUILDDIR)/.html.stamp
|
||||||
|
|
||||||
$(DOCBUILDDIR)/.html.stamp: $(ALL_RST_FILES) doc-prereqs
|
$(DOCBUILDDIR)/.html.stamp: $(ALL_RST_FILES) $(DOC_PREREQS)
|
||||||
$(SPHINXBUILD) -b html -d $(DOCBUILDDIR)/html_doctrees $(ALLSPHINXOPTS) $(DOCBUILDDIR)/html
|
$(SPHINXBUILD) -b html -d $(DOCBUILDDIR)/html_doctrees $(ALLSPHINXOPTS) $(DOCBUILDDIR)/html
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
sphinx-texinfo: $(DOCBUILDDIR)/.texi.stamp
|
sphinx-texinfo: $(DOCBUILDDIR)/.texi.stamp
|
||||||
|
|
||||||
$(DOCBUILDDIR)/.texi.stamp: $(ALL_RST_FILES) doc-prereqs
|
$(DOCBUILDDIR)/.texi.stamp: $(ALL_RST_FILES) $(DOC_PREREQS)
|
||||||
$(SPHINXBUILD) -b texinfo -d $(DOCBUILDDIR)/texinfo_doctrees $(ALLSPHINXOPTS) $(DOCBUILDDIR)/texinfo
|
$(SPHINXBUILD) -b texinfo -d $(DOCBUILDDIR)/texinfo_doctrees $(ALLSPHINXOPTS) $(DOCBUILDDIR)/texinfo
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue