I do not known if this has already been reported, but the prepending of $(srcdir)/src to the PATH in cfg.mk makes it impossible to build grep on all OS where the path separator is different from colon. I would suggest to use PATH_SEPARATOR instead of hard coding the UNIX path separator making the implicit assumption that this will DTRT for all other OS too. The current implementation ruins the syntax of the PATH because of mixed path separator characters and inhibits make to find any program at all. Please see patch below.
Regards, Juan M. Guerrero diff -aprNU5 grep-2.28.orig/cfg.mk grep-2.28/cfg.mk --- grep-2.28.orig/cfg.mk 2017-01-01 11:34:28 +0000 +++ grep-2.28/cfg.mk 2017-03-05 01:18:46 +0000 @@ -15,11 +15,11 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # Cause the tool(s) built by this package to be used also when running # commands via e.g., "make syntax-check". Doing this a little sooner # would have avoided a grep infloop bug. -export PATH := $(srcdir)/src:${PATH} +export PATH := $(srcdir)/src$(PATH_SEPARATOR)${PATH} # Used in maint.mk's web-manual rule manual_title = GNU Grep: Print lines matching a pattern # Use the direct link. This is guaranteed to work immediately, while