1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 20:05:35 +02:00

Fix the parsing.

This commit is contained in:
Alain Magloire 2003-09-08 20:10:26 +00:00
parent 9fbe84c409
commit f5a40d1db9

View file

@ -125,6 +125,7 @@ public class PosixMakefile extends AbstractMakefile {
continue; continue;
} }
// Target Rule ?
if (MakefileUtil.isTargetRule(line)) { if (MakefileUtil.isTargetRule(line)) {
String[] targets; String[] targets;
String[] reqs = new String[0]; String[] reqs = new String[0];
@ -132,7 +133,10 @@ public class PosixMakefile extends AbstractMakefile {
int index = MakefileUtil.indexOf(line.toCharArray(), ':'); int index = MakefileUtil.indexOf(line.toCharArray(), ':');
if (index != -1) { if (index != -1) {
String target = line.substring(0, index); String target = line.substring(0, index);
// Break the targets // Break the targets, some target have "::" for separator
if (target.startsWith(":")) {
target = target.substring(1);
}
targets = MakefileUtil.findTargets(target.trim()); targets = MakefileUtil.findTargets(target.trim());
String req = line.substring(index + 1); String req = line.substring(index + 1);