Commit 9d754f5
Changed files (6)
gol.c → src/gol.c
File renamed without changes
gol.h → src/gol.h
File renamed without changes
gol_test.c → src/gol_test.c
File renamed without changes
main.c → src/main.c
File renamed without changes
miniunit.h → src/miniunit.h
File renamed without changes
Rakefile
@@ -1,18 +1,16 @@
task :default => :test
task :clean do
- sh "rm -f gol"
- sh "rm -f gol_test"
- sh "rm -fr gol.dSYM"
- sh "rm -fr gol_test.dSYM"
+ sh "rm -f bin/gol"
+ sh "rm -f bin/gol_test"
end
task :run => :clean do
- sh "gcc -std=c99 -Wall -g gol.c main.c -o gol"
- sh "./gol"
+ sh "gcc -std=c99 -Wall -g src/gol.c src/main.c -o bin/gol"
+ sh "./bin/gol"
end
task :test => :clean do
- sh "gcc -std=c99 -Wall -g gol.c gol_test.c -o gol_test"
- sh "./gol_test"
+ sh "gcc -std=c99 -Wall -g src/gol.c src/gol_test.c -o bin/gol_test"
+ sh "./bin/gol_test"
end