Emacsg: make: Silence bogus warnings on newer Emacsen

I mean, what am I supposed to do here?  26.1 doesn't
want to use `if-let' and 25.3 doesn't have `if-let*'.
This commit is contained in:
Jonas Bernoulli
2017-12-21 03:16:00 +01:00
parent 17f4770a18
commit 45b352b5d0

View File

@@ -10,6 +10,10 @@ EMACS ?= emacs
all: build all: build
SILENCIO = --load subr-x
SILENCIO += --eval "(put 'if-let 'byte-obsolete-info nil)"
SILENCIO += --eval "(put 'when-let 'byte-obsolete-info nil)"
help: help:
$(info ) $(info )
$(info make [all|build] = rebuild all drones and init files) $(info make [all|build] = rebuild all drones and init files)
@@ -21,7 +25,7 @@ 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 $(SILENCIO) \
--funcall borg-initialize \ --funcall borg-initialize \
--funcall borg-batch-rebuild 2>&1 --funcall borg-batch-rebuild 2>&1
@@ -33,12 +37,12 @@ build-init:
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 $(SILENCIO) \
--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 $(SILENCIO) \
--funcall borg-initialize \ --funcall borg-initialize \
--eval '(borg-build "$(@F)")' 2>&1 --eval '(borg-build "$(@F)")' 2>&1