aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKenny Ballou <kb@devnulllabs.io>2022-04-01 11:02:29 -0600
committerKenny Ballou <kb@devnulllabs.io>2022-04-01 15:07:14 -0600
commitaa03aa5f760b4fb041771efc6bd80118895231b6 (patch)
treea8df99b70eee1f6b37fd2b58802e20e284cb8d37 /Makefile
parent289113b0790aeebdff4115adf2ad52ba70a0ebb3 (diff)
downloaddotfiles-aa03aa5f760b4fb041771efc6bd80118895231b6.tar.gz
dotfiles-aa03aa5f760b4fb041771efc6bd80118895231b6.tar.xz
makefile: add target to Org tangle emacs config
Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 91fa583c..84d86c77 100644
--- a/Makefile
+++ b/Makefile
@@ -61,3 +61,7 @@ $(HOMES):
.PHONY: $(SYSTEMS)
$(SYSTEMS):
guix time-machine -C $(CHANNEL_FILE) -- system build --cores=2 $@.scm
+
+## Private targets
+config/emacs/emacs.d/init.el config/emacs/emacs.d/early-init.el: config/emacs/emacs.d/emacs.org
+ emacs -Q --batch --eval "(progn (require 'ob-tangle) (dolist (file command-line-args-left) (with-current-buffer (find-file-noselect file) (org-babel-tangle))))" "$<"