diff options
author | Rich Salz <rsalz@akamai.com> | 2016-01-29 19:50:28 -0500 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-02-01 09:42:10 -0500 |
commit | f1f07a2367e5381ff6e96a89b2512adfa3e14d0e (patch) | |
tree | 3f00c996ca28104948b5d4360241cbdf76fd1ada /util | |
parent | eb507efba8e2333a284a2a79638f729bdc35c502 (diff) |
Better check for gcc/clang
Iteratively improved with Richard and Andy.
Reviewed-by: Andy Polyakov <appro@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/domd.in | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/util/domd.in b/util/domd.in index ede2733754..20d3474372 100755 --- a/util/domd.in +++ b/util/domd.in @@ -6,20 +6,21 @@ {- "MAKEDEPEND=" . quotify1($config{makedepprog}) -} case "${MAKEDEPEND}" in +cat) + ;; makedepend) - cp Makefile.in Makefile ${MAKEDEPEND} -DOPENSSL_DOING_MAKEDEPEND $@ || exit 1 ;; *) - args="-Werror -M" + args="-Werror -MM" while [ $# -gt 0 ]; do if [ "$1" != '--' ] ; then args="$args $1" fi shift done - ${MAKEDEPEND} -DOPENSSL_DOING_MAKEDEPEND $args >Makefile.tmp || exit 1 - cat Makefile.in Makefile.tmp >Makefile - rm Makefile.tmp + sed -e '/DO NOT DELETE THIS LINE/q' Makefile >Makefile.tmp + ${MAKEDEPEND} -DOPENSSL_DOING_MAKEDEPEND $args >>Makefile.tmp || exit 1 + mv Makefile.tmp Makefile ;; esac |