RUBY=ruby

all:	test-suite-basic
testall:	test-suite-all

test-suite-basic:
	$(RUBY) test-suite-basic.rb

test-suite-all:
	$(RUBY) test-suite-all.rb

profile:
	$(RUBY) -rprofile -I../../compat test-suite-basic.rb 2> profile.txt

rbprof:
	$(RUBY) -rrbprof -I../../compat test-suite-basic.rb 2>rbprof.txt
#	$(RUBY) -rrbprof -I../../compat test-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

x:
	-chmod 644 *.rb
	-chmod 644 .cvsignore Makefile
	-chmod 755 dev-*

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

realclean:	clean
	-rm *.profile
	-rm profile.txt
	-rm rbprof.txt
	-rm rbprof-bench.txt
	-rm rbprof-table.txt
	-rm log
