mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
Make test/Makefile more robust
* test/Makefile.in (test_template): Do not fails if corresponding source file doesn't exist.
This commit is contained in:
parent
0613e7c33d
commit
da25daf7f7
@ -221,9 +221,9 @@ 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)))
|
||||
$(1).log: $(patsubst %-tests,$(srcdir)/../%,$(1))$(if \
|
||||
$(patsubst src/%,,$(patsubst lib-src/%,,$(1))),.el,.c)
|
||||
$(1).log: $(srcfile)
|
||||
$(notdir $(1).log): $(1).log
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user