X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/5fece105eef522615db245c7f50d1c8c60f7df18..4bd5061ca56d32bf539446ea877eb098c05a6d5b:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index e694d46..3b3a23f 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +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: -bootstrap: tangle-init +tangle-init: init.el +init.el: init.org + @$(EMACS) $(EMACS_ARGUMENTS) \ + --batch --load org \ + --eval '(org-babel-tangle-file "init.org")' 2>&1 -ta: tangle-init all +build-init: + @rm -f init.elc + @$(EMACS) $(EMACS_ARGUMENTS) \ + --batch -l init.el --eval '(a/build-init)' 2>&1 -ti: tangle-init build-init +ti: tangle-init +bi: build-init