mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 04:21:24 +00:00
Make build in doc/ happen in parallel over DOCLANGS
This also avoids using ";" in make rules, which doesn't propagate errors from the first command to the entire line. * Makefile.in (MAKE_DOC_FOR_DOCLANG): New. (MAKE_DOC): delegate to 'MAKE_DOC_FOR_DOCLANG' per language doc build.
This commit is contained in:
parent
3d01d53c1e
commit
35af8d1099
1 changed files with 10 additions and 3 deletions
13
Makefile.in
13
Makefile.in
|
|
@ -1145,10 +1145,17 @@ PDFS = lispref-pdf lispintro-pdf emacs-pdf misc-pdf
|
|||
PSS = lispref-ps lispintro-ps emacs-ps misc-ps
|
||||
|
||||
DOCS = $(DVIS) $(HTMLS) $(INFOS) $(PDFS) $(PSS)
|
||||
define MAKE_DOC
|
||||
$(1):
|
||||
$(foreach lang,$(DOCLANGS),$$(MAKE) -C doc/$$(subst -, DOCLANG=$(lang) ,$$@);)
|
||||
|
||||
define MAKE_DOC_FOR_DOCLANG
|
||||
.PHONY: $(1)-DOCLANG-$(2)
|
||||
$(1)-DOCLANG-$(2):
|
||||
$$(MAKE) -C doc/$$(subst -, DOCLANG=$(2) ,$(1))
|
||||
|
||||
endef
|
||||
define MAKE_DOC
|
||||
$(1): $$(addprefix $(1)-DOCLANG-,$(DOCLANGS))
|
||||
|
||||
$$(foreach lang,$(DOCLANGS),$$(eval $$(call MAKE_DOC_FOR_DOCLANG,$(1),$$(lang))))
|
||||
endef
|
||||
$(foreach doc,$(DOCS),$(eval $(call MAKE_DOC,$(doc))))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue