diff options
| author | realtradam <[email protected]> | 2022-01-13 14:09:43 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-01-13 14:09:43 -0500 |
| commit | 883254be128a08d1870b92e5b0ae7581fe0c91af (patch) | |
| tree | bcae1158088cb4c6f8fe043f1d842548664e299b | |
| parent | 97b37689698f0f6d6ea53bd34d3f62e024f158c3 (diff) | |
| download | FelFlameEngine-883254be128a08d1870b92e5b0ae7581fe0c91af.tar.gz FelFlameEngine-883254be128a08d1870b92e5b0ae7581fe0c91af.zip | |
small rake cleanup
| -rw-r--r-- | Rakefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 |
