smake shows warnings now =)
This commit is contained in:
parent
2cbfae3282
commit
5b05e17a78
|
@ -68,7 +68,6 @@ cat $RULES_FILE >> Makefile
|
|||
REP_INCLUDE=`echo $REP_INCLUDE | sed "s~-I~~g ; s~\\$(HOME)~${HOME}~"`
|
||||
|
||||
# --- Target deplist ---
|
||||
|
||||
target_dep_lst=`remove_c_comments.pl $REP_TARGET.c | grep -P '^[\t ]*#include[\t ]*"' | sed 's~[^"]*"\([^"]*\)".*~\1~' | sort -u`
|
||||
files_not_found=
|
||||
|
||||
|
@ -90,18 +89,23 @@ while [[ "$target_dep_lst" != "$old_target_dep_lst" ]]; do
|
|||
files_not_found="$files_not_found\n$f"
|
||||
continue
|
||||
fi
|
||||
#echo F=$F
|
||||
target_dep_lst="$target_dep_lst "`remove_c_comments.pl $F | grep -P '^[\t ]*#include[\t ]*"' | sed 's~[^"]*"\([^"]*\)".*~\1~' | sort -u`
|
||||
target_dep_lst="$target_dep_lst "`remove_c_comments.pl $F \
|
||||
| grep -P '^[\t ]*#include[\t ]*"' \
|
||||
| sed 's~[^"]*"\([^"]*\)".*~\1~' | sort -u`
|
||||
target_dep_lst=`echo $target_dep_lst | sed 's~ ~\n~g' | sort -u`
|
||||
done
|
||||
#echo "target_dep_lst=$target_dep_lst"
|
||||
#echo "---------------"
|
||||
done
|
||||
|
||||
if [ $DEBUG == 1 ]; then
|
||||
echo -e "target_dep_lst:\n`echo $target_dep_lst | sed -e 's~ ~\n~g' | sed 's~\(^..\)~ \1~g'`"
|
||||
fi
|
||||
|
||||
# --- Object files deplist ---
|
||||
|
||||
|
||||
|
||||
|
||||
# ======= Warning =======
|
||||
files_not_found=`echo -e "$files_not_found" | sort -u`
|
||||
if [ "$files_not_found" != "" ]; then
|
||||
echo WARNING: Include files not found: $files_not_found
|
||||
|
|
Loading…
Reference in New Issue