Skip to content

Instantly share code, notes, and snippets.

@neko314
Forked from hrysd/Rakefile
Created April 9, 2018 08:18
Show Gist options
  • Save neko314/e3cddc22af89de3b76355e78aad1d5f5 to your computer and use it in GitHub Desktop.
Save neko314/e3cddc22af89de3b76355e78aad1d5f5 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(int argc, const char * argv[]) {
printf("mesage!\n");
return 0;
}
CC = "gcc"
task :default => "hello"
file "hello" => "hello.o" do
sh "#{CC} -o hello hello.o"
end
file "hello.o" => "hello.c" do
sh "#{CC} -c hello.c"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment