From: David J. MacKenzie Date: Tue, 27 Sep 1994 01:32:22 +0000 (+0000) Subject: don't add kr stuff if not needed X-Git-Tag: Release-0-25~461 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=e6d485b80b20bb4f4fd899eab1036abd8a39bca7;p=automake.git don't add kr stuff if not needed --- diff --git a/automake.in b/automake.in index 738674c8..2deb9e9a 100755 --- a/automake.in +++ b/automake.in @@ -81,6 +81,12 @@ do eval `sed -n -f $am_rmnl ${am_makefile}.am | sed -n -f $am_ass` + if grep @kr@ ${am_makefile}.am >/dev/null; then + kr='${kr}' + else + kr= + fi + if test -n "$PROGRAMS$LIBPROGRAMS$LIBRARIES"; then cat $AM_DIR/compile-vars.am >&4 cat $AM_DIR/compile.am >&5 @@ -96,21 +102,21 @@ s/SOURCES/OBJECTS/ s/@[^@]*@//g s/\$([^)]*)//g s/\${[^}]*}//g -s/\\.cc/.\${kr}o/g -s/\\.\${kr}c/.\${kr}o/g -s/\\.\$(kr)c/.\${kr}o/g -s/\\.[cCmylfs]/.\${kr}o/g +s/\\.cc/.${kr}o/g +s/\\.\${kr}c/.${kr}o/g +s/\\.\$(kr)c/.${kr}o/g +s/\\.[cCmylfs]/.${kr}o/g p }" >&4 fi SOURCES="$SOURCES \${${am_file}_SOURCES}" else echo "${am_file}_SOURCES = ${am_file}.c -${am_file}_OBJECTS = ${am_file}.\${kr}o" >&4 +${am_file}_OBJECTS = ${am_file}.${kr}o" >&4 SOURCES="$SOURCES ${am_file}.c" fi if test -n "$CONFIG_HEADER"; then - echo "\$(${am_file}_OBJECTS): $CONFIG_HEADER" >&4 + echo "\$(${am_file}_OBJECTS): $CONFIG_HEADER" >&5 fi done fi