Skip to content

Instantly share code, notes, and snippets.

@newbieOjisan
Created July 26, 2013 11:51
Show Gist options
  • Save newbieOjisan/6088289 to your computer and use it in GitHub Desktop.
Save newbieOjisan/6088289 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 |t|
sh "#{CC} -o #{t.name} #{t.prerequisites[0]}"
end
rule '.o' => '.c' do |t|
sh "#{CC} -c #{t.source}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment