diff --git a/example/rakefile.rb b/example/rakefile.rb
index <HASH>..<HASH> 100644
--- a/example/rakefile.rb
+++ b/example/rakefile.rb
@@ -1,13 +1,21 @@
 
+desc 'clean all examples'
+task :clean_all do
+  run_rakefiles("rake clean")
+end
+
 desc 'build all examples'
 task :all_examples do
+  run_rakefiles("rake")
+end
+
+task :default => :all_examples
+
+def run_rakefiles(c)
   Dir.glob('**/Rakefile.rb').each do |p|
     dir = File.dirname(p)
     cd dir do
-      puts "running rake in #{dir}"
-      sh "rake"
+      sh "#{c}"
     end
   end
 end
-
-task :default => :all_examples
easy way to execute all example rake tasks and clean up again