mk rules: Improve behaviour when DEVICE is set to family. Improved Warning
The warning now uses family instead of subfamily, which is available sooner.
This commit is contained in:
committed by
Karl Palsson
parent
60ca09c61e
commit
6aeb55c5d7
@@ -23,6 +23,7 @@
|
||||
|
||||
BEGIN {
|
||||
PAT = tolower(PAT);
|
||||
family = PAT;
|
||||
}
|
||||
!/^#/{
|
||||
#remove cr on windows
|
||||
@@ -35,6 +36,8 @@ BEGIN {
|
||||
tolower(tmp);
|
||||
|
||||
if (PAT ~ tmp) {
|
||||
if ("CPPFLAGS" == MODE)
|
||||
printf "-D%s ",toupper(PAT);
|
||||
if ($2 != "+")
|
||||
PAT=$2;
|
||||
for (i = 3; i <= NF; i = i + 1) {
|
||||
@@ -67,9 +70,7 @@ BEGIN {
|
||||
else{
|
||||
subfamily = family;
|
||||
family = PAT;
|
||||
if ("CPPFLAGS" == MODE)
|
||||
printf "-D%s ",toupper(PAT);
|
||||
else if("DEFS" == MODE)
|
||||
if("DEFS" == MODE)
|
||||
printf "-D%s ",toupper(PAT);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user