]> granicus.if.org Git - openssl/commitdiff
Make dependencies if Makefile is new.
authorBen Laurie <ben@links.org>
Sat, 1 Oct 2016 11:40:58 +0000 (12:40 +0100)
committerBen Laurie <ben@links.org>
Sun, 2 Oct 2016 21:58:59 +0000 (22:58 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Configurations/unix-Makefile.tmpl

index 5e21e7f00dcefb79f1150bd99b20820489abc775..140ae31f02c591fb494ef8a75bae85d2ac6cec0f 100644 (file)
@@ -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; \