Added bldit.lua build system
This commit is contained in:
parent
04ce0d643e
commit
4ab55ccb45
1 changed files with 40 additions and 0 deletions
40
bldit.lua
Normal file
40
bldit.lua
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
bldit_version = "1.1.3"
|
||||||
|
package_version = "1.1.3"
|
||||||
|
|
||||||
|
dependencies = {}
|
||||||
|
|
||||||
|
exec_name = "ray"
|
||||||
|
|
||||||
|
targets = {
|
||||||
|
default = {
|
||||||
|
build = function()
|
||||||
|
e,h,c = os.execute("rm config.h") -- I don't really like config.h personally i prefer config.def.h
|
||||||
|
if c ~= 0 and c ~= nil then
|
||||||
|
print("Clean Error")
|
||||||
|
print("GIVEN UP")
|
||||||
|
return c
|
||||||
|
end
|
||||||
|
e,h,c = os.execute("make clean")
|
||||||
|
if c ~= 0 and c ~= nil then
|
||||||
|
print("Clean Error")
|
||||||
|
print("GIVEN UP")
|
||||||
|
return c
|
||||||
|
end
|
||||||
|
e,h,c = os.execute("make")
|
||||||
|
if c ~= 0 and c ~= nil then
|
||||||
|
print("Build Error")
|
||||||
|
print("GIVEN UP")
|
||||||
|
return c
|
||||||
|
end
|
||||||
|
return 0
|
||||||
|
end,
|
||||||
|
install = function()
|
||||||
|
e,h,c = os.execute("make install")
|
||||||
|
return c or 0
|
||||||
|
end,
|
||||||
|
uninstall = function()
|
||||||
|
e,h,c = os.execute("make uninstall")
|
||||||
|
return c or 0
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue