X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/blobdiff_plain/efcec62384fd15b82a921b34de90935c9c1ee59e..ad1f9d99b2d82cfb705baaeab166def5ddda5f72:/Makefile diff --git a/Makefile b/Makefile index 37c1f3f..c36f3ba 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,9 @@ -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 +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 -build-init: - @$(EMACS) $(EMACS_ARGUMENTS) \ - --batch -l init.el --eval '(a/build-init)' 2>&1 - -ti: tangle-init -bi: build-init - -clean: FORCE - @rm -f init.elc - -.PHONY: clean tangle-init build-init -.FORCE: +i: build-init