summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Timmermans <fawaka@gmail.com>2021-08-13 03:48:42 +0200
committerJames E Keenan <jkeenan@cpan.org>2021-08-13 16:28:42 +0000
commit813d4ab41680b04219ea4219aafb4e23f3d5ab2b (patch)
tree00e75cc5af44ef44ae0e37d92cd813298358d128
parent3e05d643b0c50d21c02db146b48decb3820ad736 (diff)
downloadperl-813d4ab41680b04219ea4219aafb4e23f3d5ab2b.tar.gz
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
-rwxr-xr-xMakefile.SH4
1 files changed, 2 insertions, 2 deletions
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 \