Fix Makefile

* Makefile (eat.elc, check): Pass $(EMACSFLAGS) to $(EMACS).
This commit is contained in:
Akib Azmain Turja 2023-10-08 12:55:05 +06:00
parent e95a0d2553
commit 6e425af75d
No known key found for this signature in database
GPG key ID: 5535FCF54D88616B
2 changed files with 9 additions and 6 deletions

View file

@ -36,10 +36,11 @@ patch.
** Testing your changes ** Testing your changes
Please test your changes before committing them or sending them to the 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 list. "make check" runs all the tests. You will need to set
along with any bug fix or new functionality you commit (of course, "EMACSFLAGS" so that the checker can find the dependencies. If
some changes cannot be easily tested, but the terminal emulator part possible, add a new test along with any bug fix or new functionality
should be as much tested as possible). 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 Eat uses ERT, Emacs Lisp Regression Testing, for testing. See
https://www.gnu.org/software/emacs/manual/html_node/ert/ or run https://www.gnu.org/software/emacs/manual/html_node/ert/ or run

View file

@ -24,6 +24,7 @@ TEXI2DVI ?= texi2dvi
TEXI2HTML ?= texi2any --no-split --html TEXI2HTML ?= texi2any --no-split --html
TEXI2PDF ?= texi2pdf TEXI2PDF ?= texi2pdf
TEXI2PS ?= texi2any --ps TEXI2PS ?= texi2any --ps
EMACSFLAGS ?=
all: eat.elc terminfo info all: eat.elc terminfo info
@ -54,7 +55,7 @@ terminfo: eat.ti
fi fi
check: eat.el 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 -f ert-run-tests-batch-and-exit
changelog: changelog:
@ -63,7 +64,8 @@ changelog:
.PHONY: all terminfo info dvi html pdf check changelog .PHONY: all terminfo info dvi html pdf check changelog
eat.elc: eat.el 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 eat.info: eat.texi gpl.texi fdl.texi
$(TEXI2INFO) eat.texi $(TEXI2INFO) eat.texi