Skip to content

Commit

Permalink
Make the perl dependency post-processor into just one line
Browse files Browse the repository at this point in the history
Make doesn't always treat multiline quoted strings as nicely as one
would wish.

Reviewed-by: Andy Polyakov <appro@openssl.org>
  • Loading branch information
levitte committed Mar 15, 2016
1 parent 29b28ee commit 4def90c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Configurations/unix-Makefile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,7 @@ $obj$depext: $deps
rm -f \$\@.tmp; touch \$\@.tmp
-\$(MAKEDEPEND) -f\$\@.tmp -o"|$obj$objext" -- \$(CFLAGS) $ecflags$incs -- $srcs \\
2>/dev/null
perl -i -pe 's/^.*\\|//; s/ \\/(\\\\.|[^ ])*//; #\\
\$\$_ = undef if (/: *\$\$/ || /^(#.*| *)\$\$/); #\\
\$\$_.="\\n" unless !defined(\$\$_) or /\\R\$\$/g;' \$\@.tmp
perl -i -pe 's/^.*\\|//; s/ \\/(\\\\.|[^ ])*//; \$\$_ = undef if (/: *\$\$/ || /^(#.*| *)\$\$/); \$\$_.="\\n" unless !defined(\$\$_) or /\\R\$\$/g;' \$\@.tmp
\@if cmp \$\@.tmp \$\@ > /dev/null 2> /dev/null; then \\
rm -f \$\@.tmp; \\
else \\
Expand Down

0 comments on commit 4def90c

Please sign in to comment.