News for hackers. Stuff that matters.
Re:The Makefile I use with JavaScript projects by spc476 on Thursday March 01, 2018 @05:09PM (#16496855)
I did not do the method below. Instead, I wrote a script to generate the filename with the non-breaking space where I needed it.

Edit: rewording and typos.

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.
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.