From: Eli Zaretskii Date: Thu, 6 Apr 2023 19:14:59 +0000 (+0300) Subject: Avoid failing the build when org-version.el is updated X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5e5f5b28e92a3bb927bb03c783c426c6c3baeadc;p=emacs.git Avoid failing the build when org-version.el is updated * lisp/Makefile.in: Force recompilation of all Org files when org-version.el is updated with a new Org version. --- diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 1e0935f565f..437667e7586 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -543,4 +543,12 @@ $(lisp)/progmodes/cc-styles.elc: $(lisp)/progmodes/cc-vars.elc \ $(lisp)/progmodes/js.elc: $(lisp)/progmodes/cc-defs.elc \ $(lisp)/progmodes/cc-engine.elc $(lisp)/progmodes/cc-mode.elc +# When org-version.el gets updated with a new version, all the Org +# files need to be recompiled, or else the build will fail due to +# version mismatch, prompting the naive users to bootstrap. So we +# make all the Org *.elc files dependent of org-version.el, to trigger +# their recompilation automatically. +$(lisp)/org/org.elc $(filter-out $(lisp)/org/org-version.elc,$(filter-out $(lisp)/org/org.elc,$(wildcard $(lisp)/org/*.elc))): \ + $(lisp)/org/org-version.el + # Makefile ends here.