diff --git a/Makefile b/Makefile index 8f1cfce9..fec15e37 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,11 @@ bundle: /usr/bin/bundle install --without test --path vendor/bundle --binstubs bin/ --deployment (cd vendor/bundle/ruby/ && find . -type f -exec grep -l '/usr/bin/ruby' {} \; | xargs sed -i -e 's|/usr/bin/ruby|/usr/bin/ruby|') || true + # clean up things that are not needed at run time + (cd vendor/bundle/ruby/ && rm -rf cache) || true + (cd vendor/bundle/ruby/gems && rm -rf rails-*/guides */spec */doc */doc-api) || true + (cd vendor/bundle/ruby/gems && rm -rf */test */tests) || true + (cd vendor/bundle/ruby/ && find . \( -name '*.[coa]' -or -name '*.cc' -or -name '*.md' -or -name '.git' \) -exec rm -rf {} \;) || true distclean: clean rm -rf vendor/bundle