better
This commit is contained in:
parent
96f3fa1f70
commit
eb56a27a4d
1 changed files with 3 additions and 3 deletions
|
|
@ -101,10 +101,10 @@ pmake.isCxx = function(src) {
|
|||
|
||||
pmake.pathTransform = function(target) {
|
||||
return function(x) {
|
||||
if(x == "." || x == ".." || x.startsWith("./") || x.startsWith("../")) {
|
||||
return target.base + "/" + x;
|
||||
} else {
|
||||
if(x.startsWith("/") || x.match(/^[A-Za-z]+:\//)) {
|
||||
return x;
|
||||
} else {
|
||||
return target.base + "/" + x;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue