Skip to content

Commit

Permalink
bork.mk: Make sure init.el is tangled before init-build if init.org e…
Browse files Browse the repository at this point in the history
…xists

Partially revert 2628c68 and add
optional dependency for init-build to init.el
  • Loading branch information
Thaodan committed Aug 3, 2024
1 parent 2628c68 commit 5293a06
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 4 additions & 0 deletions borg.mk
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ init-build: init-clean
$(BORG_ARGUMENTS) \
--funcall borg-batch-rebuild-init $(INIT_FILES) 2>&1

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

## Bootstrap

bootstrap:
Expand Down
5 changes: 0 additions & 5 deletions docs/borg.org
Original file line number Diff line number Diff line change
Expand Up @@ -750,11 +750,6 @@ those are the drones that take longer to build.
This target tangles (creates) ~init.el~ from ~init.org~. You obviously
don't have to use such a file, if you don't want to.

Note that this target is *not* a dependency of ~init-build~, because it
necessarily has to depend on ~init.org~, which for most people does
not exist. So you have to run this target explicitly after making
changes to ~init.org~.

- Command: init-build ::

This target byte-compiles the init files specified by the make
Expand Down
5 changes: 0 additions & 5 deletions docs/borg.texi
Original file line number Diff line number Diff line change
Expand Up @@ -831,11 +831,6 @@ This target removes byte-code files for init files.
@deffn Command init-tangle
This target tangles (creates) @code{init.el} from @code{init.org}. You obviously
don't have to use such a file, if you don't want to.

Note that this target is @strong{not} a dependency of @code{init-build}, because it
necessarily has to depend on @code{init.org}, which for most people does
not exist. So you have to run this target explicitly after making
changes to @code{init.org}.
@end deffn

@deffn Command init-build
Expand Down

0 comments on commit 5293a06

Please sign in to comment.