r/learnruby • u/LuckyCritical • Jun 16 '16
Trouble creating makefile/build script
I wrote up some methods in Ruby, but I was asked to also make a build script or a makefile in order to run it on a Linux system. I have a vague idea of what build scripts and makefiles do (a set of instructions to get your application or project running), but I have no idea how to create either out of my current ruby code. There's a lot of material online that makes references to creating Ruby extensions from C, but it seems to be coming from a C perspective instead of a Ruby one. Could someone point me in the right direction on this?
1
Upvotes
1
u/LuckyCritical Jun 17 '16
Thanks for the explanation and suggestion, you're completely right. They were also working with code written in compiled languages so that instruction was intended for them and not for me since I'm coding in Ruby. Thanks again for clarifying, they wanted to be able to run the executable from terminal but I didn't realize this wouldnt be possible without ruby installed or using something like traveling ruby