Skip to content

Commit

Permalink
borg.mk: Force tangling of init.el like building is forced
Browse files Browse the repository at this point in the history
Tangle init.org even if it is unmodified, such like init.el is build
even if it is unmodified.
  • Loading branch information
tarsius committed Aug 3, 2024
1 parent 5eb8835 commit 8b3c9d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions borg.mk
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ native/%: .FORCE
init-clean:
$(Q)rm -f init.elc $(INIT_FILES:.el=.elc)

init-tangle: init.el
init.el: init.org
init-tangle: init.org
@printf "%s\n" "--- [init.org] ---"
$(Q)$(EMACS) $(EMACS_ARGUMENTS) $(EMACS_EXTRA) \
--load org \
--eval '(org-babel-tangle-file "init.org")' 2>&1
Expand All @@ -159,7 +159,7 @@ init-build: init-clean
--funcall borg-batch-rebuild-init $(INIT_FILES) 2>&1

ifeq ($(wildcard init.org), init.org)
init-build: init.el
init-build: init-tangle
endif

## Bootstrap
Expand Down

0 comments on commit 8b3c9d2

Please sign in to comment.