aboutsummaryrefslogtreecommitdiffstats
path: root/dotfiles.mk
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles.mk')
-rw-r--r--dotfiles.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/dotfiles.mk b/dotfiles.mk
new file mode 100644
index 0000000..c9ff16b
--- /dev/null
+++ b/dotfiles.mk
@@ -0,0 +1,8 @@
+EMACS = /usr/bin/emacs
+
+define tangle =
+ $(EMACS) -batch \
+ -eval "(package-initialize)"\
+ -load ob-tangle \
+ -eval "(org-babel-tangle-file \"\$<\" \"$(notdir $@)\" \"$(1)\")"
+endef