1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

Revert previous change in test/Makefile.in

* test/Makefile.in (test_template): Revert previous change, it isn't needed.
This commit is contained in:
Michael Albinus 2022-04-28 10:16:50 +02:00
parent 76d4e19f89
commit 5f5e114a03

View file

@ -221,13 +221,11 @@ define test_template
## The similar name is FOO.c if FOO begins with '{lib-,}src/', FOO.el
## otherwise. Although this heuristic does not identify all the
## dependencies, it is better than nothing.
srcfile = $(patsubst %-tests,$(srcdir)/../%,$(1))$(if $(patsubst src/%,,$(patsubst lib-src/%,,$(1))),.el,.c)
ifeq (,$(patsubst %-tests,,$(1))$(findstring -tests/,$(1)))
ifeq ($(shell test -e $(srcfile) && echo -n yes),yes)
$(1).log: $(srcfile)
$(1).log: $(patsubst %-tests,$(srcdir)/../%,$(1))$(if \
$(patsubst src/%,,$(patsubst lib-src/%,,$(1))),.el,.c)
$(notdir $(1).log): $(1).log
endif
endif
## Short aliases that always re-run the tests, with no logging.
## Define both with and without the directory name for ease of use.