smake shows warnings now =)

This commit is contained in:
Kolan Sh 2011-07-07 18:36:57 +04:00
parent 2cbfae3282
commit 5b05e17a78
1 changed files with 9 additions and 5 deletions

View File

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