From 6e425af75dcc65d8cd6b144b155d92c3f0c16f05 Mon Sep 17 00:00:00 2001 From: Akib Azmain Turja Date: Sun, 8 Oct 2023 12:55:05 +0600 Subject: [PATCH] Fix Makefile * Makefile (eat.elc, check): Pass $(EMACSFLAGS) to $(EMACS). --- CONTRIBUTE | 9 +++++---- Makefile | 6 ++++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTE b/CONTRIBUTE index 67aa6e5..136016a 100644 --- a/CONTRIBUTE +++ b/CONTRIBUTE @@ -36,10 +36,11 @@ patch. ** Testing your changes Please test your changes before committing them or sending them to the -list. "make check" runs all the tests. If possible, add a new test -along with any bug fix or new functionality you commit (of course, -some changes cannot be easily tested, but the terminal emulator part -should be as much tested as possible). +list. "make check" runs all the tests. You will need to set +"EMACSFLAGS" so that the checker can find the dependencies. If +possible, add a new test along with any bug fix or new functionality +you commit (of course, some changes cannot be easily tested, but the +terminal emulator part should be as much tested as possible). Eat uses ERT, Emacs Lisp Regression Testing, for testing. See https://www.gnu.org/software/emacs/manual/html_node/ert/ or run diff --git a/Makefile b/Makefile index 558d360..e1fac8d 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ TEXI2DVI ?= texi2dvi TEXI2HTML ?= texi2any --no-split --html TEXI2PDF ?= texi2pdf TEXI2PS ?= texi2any --ps +EMACSFLAGS ?= all: eat.elc terminfo info @@ -54,7 +55,7 @@ terminfo: eat.ti fi check: eat.el - $(EMACS) -batch -l eat.el -l eat-tests.el \ + $(EMACS) -batch $(EMACSFLAGS) -l eat.el -l eat-tests.el \ -f ert-run-tests-batch-and-exit changelog: @@ -63,7 +64,8 @@ changelog: .PHONY: all terminfo info dvi html pdf check changelog eat.elc: eat.el - $(EMACS) -batch --eval '(byte-compile-file "eat.el")' + $(EMACS) -batch $(EMACSFLAGS) \ + --eval '(byte-compile-file "eat.el")' eat.info: eat.texi gpl.texi fdl.texi $(TEXI2INFO) eat.texi