Skip to content

Commit

Permalink
Avoid failing the build when org-version.el is updated
Browse files Browse the repository at this point in the history
* lisp/Makefile.in: Force recompilation of all Org files when
org-version.el is updated with a new Org version.
  • Loading branch information
Eli-Zaretskii committed Apr 6, 2023
1 parent 2d1a96e commit 5e5f5b2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lisp/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 5e5f5b2

Please # to comment.