X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/d1da2c8c8b073929657a736f67525ee35935bf5d..1323384f45451b35419647b87bbf9f18434e6fef:/Makefile diff --git a/Makefile b/Makefile index 3521a23..3b3a23f 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,19 @@ --include lib/borg/borg.mk +EMACS ?= emacs +EMACS_ARGUMENTS ?= -Q -bootstrap-borg: - @git submodule--helper clone --name borg --path lib/borg \ - --url git@github.com:emacscollective/borg.git - @cd lib/borg; git symbolic-ref HEAD refs/heads/master - @cd lib/borg; git reset --hard HEAD +.PHONY: all help clean build build-init quick bootstrap +.FORCE: -ta: tangle-init all +tangle-init: init.el +init.el: init.org + @$(EMACS) $(EMACS_ARGUMENTS) \ + --batch --load org \ + --eval '(org-babel-tangle-file "init.org")' 2>&1 -ti: tangle-init build-init +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