[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Retrieving the "include" directory for Emacs Modules
From: |
Stefan Monnier |
Subject: |
Re: Retrieving the "include" directory for Emacs Modules |
Date: |
Mon, 09 Dec 2024 17:10:50 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> As I tried to explain, if emacs-module.h is not installed in its
> intended place, we cannot know where it is installed.
The patch below would make sure that `emacs-module.h` is always
available at `$(data-directory)/include/emacs-module.h`.
Stefan
diff --git a/src/Makefile.in b/src/Makefile.in
index c278924ef94..c1385dd7188 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -731,12 +731,19 @@ MAKE_PDUMPER_FINGERPRINT =
MAKE_PDUMPER_FINGERPRINT =
endif
+modules_header = $(top_srcdir)/etc/include/emacs-module.h
+
+$(modules_header): $(srcdir)/emacs-module.h
+ $(AM_V_at)$(MKDIR_P) $(dir $@)
+ $(AM_V_at)cp $< $@
+
## We have to create $(etc) here because init_cmdargs tests its
## existence when setting Vinstallation_directory (FIXME?).
## This goes on to affect various things, and the emacs binary fails
## to start if Vinstallation_directory has the wrong value.
temacs$(EXEEXT): $(LIBXMENU) $(ALLOBJS) $(LIBEGNU_ARCHIVE) $(EMACSRES) \
- $(charsets) $(charscript) ${emoji-zwj} $(MAKE_PDUMPER_FINGERPRINT)
+ $(charsets) $(charscript) ${emoji-zwj} $(MAKE_PDUMPER_FINGERPRINT) \
+ $(modules_header)
ifeq ($(HAVE_BE_APP),yes)
$(AM_V_CXXLD)$(CXX) -o $@.tmp \
$(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \
- Re: Retrieving the "include" directory for Emacs Modules, (continued)
- Re: Retrieving the "include" directory for Emacs Modules, Marco Antoniotti, 2024/12/09
- Re: Retrieving the "include" directory for Emacs Modules, Eli Zaretskii, 2024/12/09
- Re: Retrieving the "include" directory for Emacs Modules, Rudolf Schlatte, 2024/12/09
- Re: Retrieving the "include" directory for Emacs Modules,
Stefan Monnier <=
- Re: Retrieving the "include" directory for Emacs Modules, Eli Zaretskii, 2024/12/09
- Re: Retrieving the "include" directory for Emacs Modules, Stefan Monnier, 2024/12/10
- Re: Retrieving the "include" directory for Emacs Modules, Eli Zaretskii, 2024/12/11
- Re: Retrieving the "include" directory for Emacs Modules, Björn Bidar, 2024/12/19
- Re: Retrieving the "include" directory for Emacs Modules, Eli Zaretskii, 2024/12/20
- Re: Retrieving the "include" directory for Emacs Modules, Basile Starynkevitch, 2024/12/20
- Re: Retrieving the "include" directory for Emacs Modules, Björn Bidar, 2024/12/22
- Re: Retrieving the "include" directory for Emacs Modules, Stefan Monnier, 2024/12/20
- Re: Retrieving the "include" directory for Emacs Modules, Björn Bidar, 2024/12/22
- Re: Retrieving the "include" directory for Emacs Modules, Stefan Monnier, 2024/12/24