From 883254be128a08d1870b92e5b0ae7581fe0c91af Mon Sep 17 00:00:00 2001 From: realtradam Date: Thu, 13 Jan 2022 14:09:43 -0500 Subject: small rake cleanup --- Rakefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 7c84225..2a23f71 100644 --- a/Rakefile +++ b/Rakefile @@ -2,13 +2,22 @@ namespace :build do desc "Build the engine" task :mruby do Dir.chdir("mruby") do - `env MRUBY_CONFIG=build_config/felflame_linux.rb rake` + system('env MRUBY_CONFIG=build_config/felflame_linux.rb rake') end end desc 'Build the game' task :game do Dir.chdir("build/temp") do - `emcc -s WASM=1 -Os -I ../../mruby/include/ ../template/game.c ../../mruby/build/web/lib/libmruby.a -o game.html --closure 1 ../../raylib_lib_files/web/libraylib.a -I ../../raylib/src/ -s USE_GLFW=3` + system('emcc -s WASM=1 -Os -I ../../mruby/include/ ../template/game.c ../../mruby/build/web/lib/libmruby.a -o game.html --closure 1 ../../raylib_lib_files/web/libraylib.a -I ../../raylib/src/ -s USE_GLFW=3') + end + end +end + +namespace :clean do + desc "Clean the mruby build folders" + task :mruby do + Dir.chdir("mruby") do + system('rake deep_clean') end end end -- cgit v1.2.3