Hints:
mkdir --parents ~/prog/hello
.
(MacOS users should use short options, I believe).
cd ~/prog/hello
.
out.txt : hello.exe # out.txt depends on hello.exe mono hello.exe > out.txt # run hello.exe, send output to out.txt hello.exe : hello.cs # hello.exe depends on hello.cs mcs hello.cs # compile hello.cs into hello.exe clean: # a phoney target, no dependencies rm -f out.txt hello.exe # remove secondary files(MacOS users should use short options, I believe).
hello.cs
with the following content
class hello{ static void Main(){ System.Console.Write("hello\n"); } }
make
and debug.