help-gnu-emacs
[Top][All Lists]
Advanced

[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) \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]