Update 2 drones
[~bandali/configs] / Makefile
index 37c1f3f..02296e8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,24 @@
-EMACS           ?= emacs
-EMACS_ARGUMENTS ?= -Q
+-include lib/borg/borg.mk
 
-tangle-init: init.el
-init.el: init.org
-       @$(EMACS) $(EMACS_ARGUMENTS) \
-       --batch --load org \
-       --eval '(org-babel-tangle-file "init.org")' 2>&1
+INIT_FILES  = early-init.el
+INIT_FILES += init.el
+INIT_FILES += lisp/bandali-utils.el
+INIT_FILES += lisp/bandali-org.el
+INIT_FILES += lisp/bandali-theme.el
+INIT_FILES += lisp/bandali-ivy.el
+INIT_FILES += lisp/bandali-eshell.el
+INIT_FILES += lisp/bandali-ibuffer.el
+INIT_FILES += lisp/bandali-dired.el
+INIT_FILES += lisp/bandali-gnus.el
+INIT_FILES += lisp/bandali-message.el
+INIT_FILES += lisp/bandali-ebdb.el
+INIT_FILES += lisp/bandali-erc.el
+INIT_FILES += lisp/bandali-yasnippet.el
 
-build-init:
-       @$(EMACS) $(EMACS_ARGUMENTS) \
-       --batch -l init.el --eval '(a/build-init)' 2>&1
+bootstrap-borg:
+       @git submodule--helper clone --name borg --path lib/borg \
+       --url https://github.com/emacscollective/borg.git
+       @cd lib/borg; git symbolic-ref HEAD refs/heads/master
+       @cd lib/borg; git reset --hard HEAD
 
-ti: tangle-init
-bi: build-init
-
-clean: FORCE
-               @rm -f init.elc
-
-.PHONY: clean tangle-init build-init
-.FORCE:
+i: build-init