+ # Library makefiles should use "+=" to break up long sources lines rather
+ # than backslashed continuation lines, to allow this script to detect
+ # source files correctly. Warn if that's not the case.
if
- grep "lib${lib}_la_SOURCES.*\\\\" $am
+ grep "lib${LIB}_la_SOURCES.*\\\\" $AMFILE
then
- echo -e "\033[1;35m -- Sources list for lib$lib is probably truncated! --\033[0m"
- echo ""
+ echo -e "\033[1;35m -- Sources list for lib$LIB is probably truncated! --\033[0m"
+ echo "Edit to use '+=' rather than backslashed continuation lines"
+ prompt_to_continue
fi
- sources=`grep "lib${lib}_la_SOURCES" $am | sed s/.*=// | sed 's:$(top_builddir)/::' | sed 's:$(top_srcdir)/::' | sed 's:\\\::' | sed 's:$(libpe_rules_la_SOURCES):rules.c\ common.c:'`