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>
# License: GPL v3 <https://www.gnu.org/licenses/gpl-3.0.txt>
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