diff options
| author | Michael Albinus | 2022-04-27 14:13:24 +0200 |
|---|---|---|
| committer | Michael Albinus | 2022-04-27 14:13:24 +0200 |
| commit | da25daf7f74cfab558eb0f796d2fe33e6c4f06dd (patch) | |
| tree | 13d2fb542a8a6aed7991c87dfe902bcf20026c35 /test | |
| parent | 0613e7c33d75a2bc7185439598893ad0bb24e110 (diff) | |
| download | emacs-da25daf7f74cfab558eb0f796d2fe33e6c4f06dd.tar.gz emacs-da25daf7f74cfab558eb0f796d2fe33e6c4f06dd.zip | |
Make test/Makefile more robust
* test/Makefile.in (test_template): Do not fails if corresponding
source file doesn't exist.
Diffstat (limited to 'test')
| -rw-r--r-- | test/Makefile.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index 3b6e116e65f..9c61da9dde8 100644 --- a/test/Makefile.in +++ b/test/Makefile.in | |||
| @@ -221,9 +221,9 @@ define test_template | |||
| 221 | ## The similar name is FOO.c if FOO begins with '{lib-,}src/', FOO.el | 221 | ## The similar name is FOO.c if FOO begins with '{lib-,}src/', FOO.el |
| 222 | ## otherwise. Although this heuristic does not identify all the | 222 | ## otherwise. Although this heuristic does not identify all the |
| 223 | ## dependencies, it is better than nothing. | 223 | ## dependencies, it is better than nothing. |
| 224 | srcfile = $(patsubst %-tests,$(srcdir)/../%,$(1))$(if $(patsubst src/%,,$(patsubst lib-src/%,,$(1))),.el,.c) | ||
| 224 | ifeq (,$(patsubst %-tests,,$(1))$(findstring -tests/,$(1))) | 225 | ifeq (,$(patsubst %-tests,,$(1))$(findstring -tests/,$(1))) |
| 225 | $(1).log: $(patsubst %-tests,$(srcdir)/../%,$(1))$(if \ | 226 | $(1).log: $(srcfile) |
| 226 | $(patsubst src/%,,$(patsubst lib-src/%,,$(1))),.el,.c) | ||
| 227 | $(notdir $(1).log): $(1).log | 227 | $(notdir $(1).log): $(1).log |
| 228 | endif | 228 | endif |
| 229 | 229 | ||