From: Richard Levitte Date: Sat, 20 Feb 2016 16:29:23 +0000 (+0100) Subject: Avoid GNU make re-exec when adding dependencies to Makefile X-Git-Tag: OpenSSL_1_1_0-pre4~571 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ea80a25e812520ebcaa437aec90ac2b9791df4b2;p=oweals%2Fopenssl.git Avoid GNU make re-exec when adding dependencies to Makefile GNU make will re-exec if (it thinks that) the Makefile has changed. Just having the target Makefile seems to make it think it has, so we end up in a look where GNU make re-execs for ever. The fix is easy, just remove the Makefile target and have the depend target run the recipe on its own instead of depending on Makefile. Reviewed-by: Rich Salz --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index 3170e51896..47608f7d84 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -249,8 +249,7 @@ clean: libclean rm -f $(TARFILE) # This exists solely for those who still type 'make depend' -depend: Makefile -Makefile: FORCE +depend: @( sed -e '/^# DO NOT DELETE THIS LINE.*/,$$d' < Makefile; \ echo '# DO NOT DELETE THIS LINE -- make depend depends on it.'; \ echo; \