From 45b352b5d0842eb9caf2d44bc49d1ed5cb7afad4 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Thu, 21 Dec 2017 03:16:00 +0100 Subject: [PATCH] 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*'. --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index be44cf3..60f5690 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,10 @@ EMACS ?= emacs 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: $(info ) $(info make [all|build] = rebuild all drones and init files) @@ -21,7 +25,7 @@ help: build: @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-batch-rebuild 2>&1 @@ -33,12 +37,12 @@ build-init: quick: @rm -f init.elc - @$(EMACS) -Q --batch -L lib/borg --load borg \ + @$(EMACS) -Q --batch -L lib/borg --load borg $(SILENCIO) \ --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 $(SILENCIO) \ --funcall borg-initialize \ --eval '(borg-build "$(@F)")' 2>&1