summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorVincent Belaïche <vincentb1@users.sourceforge.net>2026-04-16 23:04:05 +0200
committerVincent Belaïche <vincentb1@users.sourceforge.net>2026-05-29 09:25:17 +0200
commitca346be53c7063f0d0a13c9f04fdea541da0fae2 (patch)
tree960272784a8d11553892c9d9c75d87bb8c6e6a25 /doc
parent0275b41d1c6107de8eb6632c7912212f725b3db9 (diff)
Handle the info duplicate target issue as close as possible to the conflict.
The problems are: - filtering out the info from info making templates misses some dependencies. - naming PHONY target info.info is misleading, as there is also an info.info in the info build directory
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/Makefile.in18
-rw-r--r--doc/translations/default/info_common.mk2
2 files changed, 8 insertions, 12 deletions
diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in
index ca11dd9fbc8..10b6326a7a0 100644
--- a/doc/misc/Makefile.in
+++ b/doc/misc/Makefile.in
@@ -1,4 +1,3 @@
-
### @configure_input@
# Copyright (C) 1994, 1996-2026 Free Software Foundation, Inc.
@@ -96,8 +95,7 @@ TEXI_FROM_ORG = ${ORG_SRC:.org=.texi}
# There are some naming differences between the info targets and the other
# targets, so let's resolve them here.
-TARGETS_1 = $(INFO_INSTALL:ccmode=cc-mode)
-TARGETS = $(TARGETS_1:info.info=info)
+TARGETS = $(INFO_INSTALL:ccmode=cc-mode)
# Sources are also suffixed, this is useless as they are in different
# directories, but some people argued that there should not be
@@ -124,15 +122,15 @@ ENVADD = $(AM_V_GEN)TEXINPUTS="$(srcdir):$(emacsdir):$(TEXINPUTS)" \
gfdl = ${srcdir}/doclicense.texi
style = ${emacsdir}/docstyle.texi
-.PHONY: info dvi html pdf ps echo-info echo-sources $(INFO_TARGETS)
+.PHONY: info dvi html pdf ps echo-info echo-sources $(patsubst info, info-doc, $(INFO_TARGETS))
## Prevent implicit rule triggering for foo.info.
.SUFFIXES:
## Disable implicit rules.
%.texi: ;
-# Default.
-info: $(INFO_TARGETS)
+# Default. patsubst as "info" is already taken.
+info: $(patsubst info, info-doc,$(INFO_TARGETS))
## Used by top-level Makefile.
## Base file names of output info files.
@@ -164,15 +162,13 @@ ${buildinfodir}/%$(lang_suffix).info: ${srcdir}/$(lang_subdir)%$(lang_suffix).te
## The short aliases, eg efaq = $(buildinfodir)/efaq.info.
define info_template
- $(1): $$(buildinfodir)/$(1)$$(lang_suffix).info
+## patsubst as "info" is already taken.
+$$(patsubst info, info-doc, $(1)): $$(buildinfodir)/$(1)$$(lang_suffix).info
$$(buildinfodir)/$(1)$$(lang_suffix).info: $$(srcdir)/$$(lang_subdir)$(1)$$(lang_suffix).texi $$(gfdl) $$(style)
endef
-## "info" is already taken.
-info.info: $(buildinfodir)/info.info
-
-$(foreach ifile,$(filter-out info.info,$(INFO_TARGETS)),$(eval $(call info_template,$(ifile))))
+$(foreach ifile,$(INFO_TARGETS),$(eval $(call info_template,$(ifile))))
%$(lang_suffix).dvi: ${srcdir}/$(lang_subdir)%$(lang_suffix).texi ${gfdl} ${style}
diff --git a/doc/translations/default/info_common.mk b/doc/translations/default/info_common.mk
index 9c09f5a0cec..56c505c8b10 100644
--- a/doc/translations/default/info_common.mk
+++ b/doc/translations/default/info_common.mk
@@ -2,7 +2,7 @@
INFO_COMMON = auth autotype bovine calc ccmode cl dbus dired-x \
ebrowse ede ediff edt efaq eglot eieio emacs-gnutls \
emacs-mime epa erc ert eshell eudc eww flymake forms gnus \
- htmlfontify idlwave ido info.info mairix-el message mh-e \
+ htmlfontify idlwave ido info mairix-el message mh-e \
modus-themes newsticker nxml-mode octave-mode org pcl-cvs pgg \
rcirc reftex remember sasl sc semantic ses sieve smtpmail \
speedbar srecode todo-mode tramp transient url use-package \