Emacsg: Makefile: respect EMACS environment variable

This commit is contained in:
Richard Kim 2017-09-24 10:15:09 -07:00 committed by Jonas Bernoulli
parent 69bedcb8a1
commit 9756b42aa5

View File

@ -3,6 +3,8 @@
# Author: Jonas Bernoulli <jonas@bernoul.li> # Author: Jonas Bernoulli <jonas@bernoul.li>
# License: GPL v3 <https://www.gnu.org/licenses/gpl-3.0.txt> # License: GPL v3 <https://www.gnu.org/licenses/gpl-3.0.txt>
EMACS ?= emacs
.PHONY: all help build build-init quick bootstrap .PHONY: all help build build-init quick bootstrap
.FORCE: .FORCE:
@ -19,24 +21,24 @@ help:
build: build:
@rm -f init.elc @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-initialize \
--funcall borg-batch-rebuild 2>&1 --funcall borg-batch-rebuild 2>&1
build-init: build-init:
@rm -f init.elc @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-initialize \
--funcall borg-batch-rebuild-init 2>&1 --funcall borg-batch-rebuild-init 2>&1
quick: quick:
@rm -f init.elc @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-initialize \
--eval '(borg-batch-rebuild t)' 2>&1 --eval '(borg-batch-rebuild t)' 2>&1
lib/%: .FORCE lib/%: .FORCE
@emacs -Q --batch -L lib/borg --load borg \ @$(EMACS) -Q --batch -L lib/borg --load borg \
--funcall borg-initialize \ --funcall borg-initialize \
--eval '(borg-build "$(@F)")' 2>&1 --eval '(borg-build "$(@F)")' 2>&1