diff options
author | Richard Levitte <levitte@openssl.org> | 2016-04-02 17:10:03 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-04-02 20:10:03 +0200 |
commit | e3d818588056ec8fed501e1f5970ef9b5b057fc5 (patch) | |
tree | 4fff935be31b1e6eb0be3e05c7592945946e4c48 /Configurations | |
parent | fa0a9d715e7e35d4f597683c16b643343245fa26 (diff) | |
download | openssl-e3d818588056ec8fed501e1f5970ef9b5b057fc5.zip openssl-e3d818588056ec8fed501e1f5970ef9b5b057fc5.tar.gz openssl-e3d818588056ec8fed501e1f5970ef9b5b057fc5.tar.bz2 |
make depend: Check that find returned a non-empty string rather than an empty
The logic to find out of there are any .d files newer than Makefile is
sound. Checking the result was less so.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configurations')
-rw-r--r-- | Configurations/unix-Makefile.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl index e381237..5b9a23f 100644 --- a/Configurations/unix-Makefile.tmpl +++ b/Configurations/unix-Makefile.tmpl @@ -261,7 +261,7 @@ clean: libclean # concatenate only if that is true. depend: @: {- output_off() if $disabled{makedepend}; "" -} - @if [ -z "`find $(DEPS) -newer Makefile 2>/dev/null; exit 0`" ]; then \ + @if [ -n "`find $(DEPS) -newer Makefile 2>/dev/null; exit 0`" ]; then \ ( sed -e '/^# DO NOT DELETE THIS LINE.*/,$$d' < Makefile; \ echo '# DO NOT DELETE THIS LINE -- make depend depends on it.'; \ echo; \ |