Re:The Makefile I use with JavaScript projects
by abhishekjha on Thursday March 01, 2018 @06:40PM
(#16497444)
Any way I can see the script? Looks like I am still learning and ended up taking a longer route.
[ Parent
| on HN ]
Re:The Makefile I use with JavaScript projects
by spc476 on Thursday March 01, 2018 @11:02PM
(#16498897)
It's Lua 5.3:
h = "hello" .. utf8.char(160) .. "world"
f = io.open("Makefile","w")
f:write(h,":\n")
f:close()
f = io.open(h .. ".c","w")
f:write([[
#include <stdio.h>
int main(void)
{
puts("Hello, world!");
return 0;
}
]])
f:close()
Pretty straightforward.