summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2018-12-24 23:23:06 -0500
committerAmin Bandali <bandali@gnu.org>2018-12-24 23:23:06 -0500
commitc145ffd981a65b0556b25611aeb8064c05f67812 (patch)
tree7c14c5e90e057e370f793d22700bb64ffbdd648c /Makefile
parente724cc402f5c4fd2fc84536c2806d0d2f46926d9 (diff)
downloadconfigs-c145ffd981a65b0556b25611aeb8064c05f67812.tar.gz
configs-c145ffd981a65b0556b25611aeb8064c05f67812.tar.xz
configs-c145ffd981a65b0556b25611aeb8064c05f67812.zip
[emacs][wip] hack together a bootstrap path
Diffstat (limited to '')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3b3a23f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+EMACS ?= emacs
+EMACS_ARGUMENTS ?= -Q
+
+.PHONY: all help clean build build-init quick bootstrap
+.FORCE:
+
+tangle-init: init.el
+init.el: init.org
+ @$(EMACS) $(EMACS_ARGUMENTS) \
+ --batch --load org \
+ --eval '(org-babel-tangle-file "init.org")' 2>&1
+
+build-init:
+ @rm -f init.elc
+ @$(EMACS) $(EMACS_ARGUMENTS) \
+ --batch -l init.el --eval '(a/build-init)' 2>&1
+
+ti: tangle-init
+bi: build-init