RUBY=ruby

all:
	$(RUBY) all.rb

testall:
	$(RUBY) testall.rb

profile:
	$(RUBY) -rprofile -I. all.rb 2>profile.txt

rbprof:
	$(RUBY) -rrbprof -I../../compat all.rb 2>rbprof.txt

bench:
	$(RUBY) -rrbprof -I../../compat bench-session.rb 2> rbprof-bench.txt

bench-page:
	$(RUBY) -rrbprof -I../../compat bench-page.rb 2> rbprof-page.txt

bench-textformat:
	$(RUBY) -rrbprof -I../../compat bench-textformat.rb 2> rbprof-textformat.txt

clean:
	-rm *~
	-rm -rf example.com test www e.com
	-rm testlog.txt
	-rm generation.txt
	-rm test.db test.zip testtemp.zip
	-rm *.stackdump
	-rm ../../cache/sid/????????????????????????????????
