Built a make bootstrap that runs either make or ninja depending on which is

installed.
This commit is contained in:
David Given
2016-07-16 14:58:29 +02:00
parent bcf3408e36
commit 523374c36b
3 changed files with 158 additions and 95 deletions

View File

@@ -146,7 +146,10 @@ end
local function abspath(collection)
return dotocollection(collection,
function(filename)
return concatpath(posix.getcwd(), filename)
if not filename:find("^[/$]") then
filename = concatpath(posix.getcwd(), filename)
end
return filename
end
)
end

2
first/build.ninja Normal file
View File

@@ -0,0 +1,2 @@
subninja .obj/rules.ninja