Makefile.am: fix override of target 'check-recursive'
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 23 Dec 2020 18:15:02 +0000 (19:15 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 8 Jan 2021 10:23:59 +0000 (10:23 +0000)
To prevent executing the Jim Tcl tests, the makefile's target
'check-recursive' has been overridden in commit 56d163ce7951
("jimtcl: update to 0.77, the current version, enable only
specific modules").
This causes a runtime warning during build:
Makefile:6332: warning: overriding recipe for target 'check-recursive'
Makefile:5098: warning: ignoring old recipe for target 'check-recursive'

Instead of override the makefile's target 'check-recursive',
prevent the recursion by re-assigning as empty the variable
SUBDIRS for this specific target only.

Change-Id: I03d1c467eba42316a59aeed4612d6bdbe6211282
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Fixes: 56d163ce7951 ("jimtcl: update to 0.77, the current version, enable only specific modules")
Reviewed-on: http://openocd.zylin.com/5986
Tested-by: jenkins
Makefile.am

index 7a718d769a2d217e94eb6ddd6d3ea7a406692359..c1de02da0d1748bf0831ee7e4c2d3ce16e0814e6 100644 (file)
@@ -6,8 +6,7 @@ AUTOMAKE_OPTIONS = gnu 1.6
 DISTCHECK_CONFIGURE_FLAGS = --disable-install-jim
 
 # do not run Jim Tcl tests (esp. during distcheck)
-check-recursive:
-       @true
+check-recursive: SUBDIRS :=
 
 nobase_dist_pkgdata_DATA = \
        contrib/libdcc/dcc_stdio.c \