From: Ben Laurie Date: Sat, 1 Oct 2016 11:40:58 +0000 (+0100) Subject: Make dependencies if Makefile is new. X-Git-Tag: OpenSSL_1_1_1-pre1~3405 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d423c5ad6509293a29a308919c696515d29e5e3f;p=oweals%2Fopenssl.git Make dependencies if Makefile is new. Reviewed-by: Richard Levitte --- diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index bb7ce1c8f0..d0d56e5b6f 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -307,7 +307,7 @@ distclean: clean # concatenate only if that is true. depend: @: {- output_off() if $disabled{makedepend}; "" -} - @if [ -n "`find $(DEPS) -newer Makefile 2>/dev/null; exit 0`" ]; then \ + @if egrep "^# DO NOT DELETE THIS LINE" Makefile >/dev/null && [ -z "`find $(DEPS) -newer Makefile 2>/dev/null; exit 0`" ]; then :; else \ ( sed -e '/^# DO NOT DELETE THIS LINE.*/,$$d' < Makefile; \ echo '# DO NOT DELETE THIS LINE -- make depend depends on it.'; \ echo; \