|
|
@ -39,9 +39,9 @@ dnl refers to ${prefix}. Thus we have to use `eval' twice. |
|
|
|
|
|
|
|
|
|
|
|
AC_DEFUN([AX_ADD_MAKEFILE_TARGET_DEP], [ |
|
|
|
AC_DEFUN([AX_ADD_MAKEFILE_TARGET_DEP], [ |
|
|
|
sh_add_makefile_target_dep() { |
|
|
|
sh_add_makefile_target_dep() { |
|
|
|
sed -i ':a;/^'${1}':.*\\$/{N;s/\\\n//;ta};s/^'${1}':.*$/& '${2}'/' "${3}" |
|
|
|
sed -i ':a;/^'${1}':.*\\$/{N;s/\\\n//;ta};s/^'${1}':.*$/& '${2}'/' "${top_srcdir}/${3}" |
|
|
|
if ! egrep -q "${1}:.* ${2}" "${3}"; then |
|
|
|
if ! egrep -q "${1}:.* ${2}" "${top_srcdir}/${3}"; then |
|
|
|
echo "${1}: ${2}" >> "${3}" |
|
|
|
echo "${1}: ${2}" >> "${top_srcdir}/${3}" |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
} |
|
|
|
sh_add_makefile_target_dep "$1" "$2" "$3" |
|
|
|
sh_add_makefile_target_dep "$1" "$2" "$3" |
|
|
|