diff --git a/Makefile b/Makefile index 64395e1..be44cf3 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ # Author: Jonas Bernoulli # License: GPL v3 +EMACS ?= emacs + .PHONY: all help build build-init quick bootstrap .FORCE: @@ -19,24 +21,24 @@ help: build: @rm -f init.elc - @emacs -Q --batch -L lib/borg --load borg \ + @$(EMACS) -Q --batch -L lib/borg --load borg \ --funcall borg-initialize \ --funcall borg-batch-rebuild 2>&1 build-init: @rm -f init.elc - @emacs -Q --batch -L lib/borg --load borg \ + @$(EMACS) -Q --batch -L lib/borg --load borg \ --funcall borg-initialize \ --funcall borg-batch-rebuild-init 2>&1 quick: @rm -f init.elc - @emacs -Q --batch -L lib/borg --load borg \ + @$(EMACS) -Q --batch -L lib/borg --load borg \ --funcall borg-initialize \ --eval '(borg-batch-rebuild t)' 2>&1 lib/%: .FORCE - @emacs -Q --batch -L lib/borg --load borg \ + @$(EMACS) -Q --batch -L lib/borg --load borg \ --funcall borg-initialize \ --eval '(borg-build "$(@F)")' 2>&1