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>
This commit is contained in:
parent
fa0a9d715e
commit
e3d8185880
1 changed files with 1 additions and 1 deletions
|
@ -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; \
|
||||
|
|
Loading…
Reference in a new issue