Added bldit.lua
This commit is contained in:
parent
44dbc6809d
commit
a929abd5bc
1 changed files with 38 additions and 0 deletions
38
bldit.lua
Normal file
38
bldit.lua
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
bldit_version = "1.1.3"
|
||||||
|
package_version = "1.1.3"
|
||||||
|
|
||||||
|
dependencies = {}
|
||||||
|
|
||||||
|
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 PREFIX="..prefix)
|
||||||
|
return c or 0
|
||||||
|
end,
|
||||||
|
uninstall = function()
|
||||||
|
e,h,c = os.execute("make uninstall PREFIX="..prefix)
|
||||||
|
return c or 0
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue