From 813d4ab41680b04219ea4219aafb4e23f3d5ab2b Mon Sep 17 00:00:00 2001 From: Leon Timmermans Date: Fri, 13 Aug 2021 03:48:42 +0200 Subject: Make new makedepend logic compatible with bsd make It used pattern rules, which are a gnu make feature that isn't supported by bsd makes (and probably other makes) For: https://github.com/Perl/perl5/pull/19047 --- Makefile.SH | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.SH') diff --git a/Makefile.SH b/Makefile.SH index ecbe8c136b..b25c4f8e48 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -427,7 +427,7 @@ FIRSTMAKEFILE = $firstmakefile # Any special object files needed by this architecture, e.g. os2/os2.obj ARCHOBJS = $archobjs -.SUFFIXES: .c \$(OBJ_EXT) .i .s +.SUFFIXES: .c \$(OBJ_EXT) .i .s .c.depends # grrr SHELL = $sh @@ -1521,7 +1521,7 @@ $spitshell >>$Makefile <<'!NO!SUBS!' depend: makedepend $(DTRACE_H) $(generated_headers) sh ./makedepend MAKE="$(MAKE)" cflags -%.c.depends: %.c +.c.c.depends: sh ./makedepend_file $< $@ cflags .PHONY: test check test_prep test_prep_nodll test_prep_pre \ -- cgit v1.2.1