X-Git-Url: https://git.shemshak.org/~bandali/configs/blobdiff_plain/0681f90d3bf05781a7eeff935adaa4e7dd2a4e80..ff374d22f5aab91625fd5e9f780ae27daed96943:/Makefile diff --git a/Makefile b/Makefile index 974ffd8..3b3a23f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +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: + +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