-.PHONY : test
+.PHONY : build test
+all: install
+
+# Ruby 1.9 doesn't include the current directory in the load path, so
+# we pass them on the command-line.
test:
- ruby test/test_suite.rb
+ ruby -I. test/test_suite.rb
remote_test:
- ruby test/remote_test_suite.rb
+ ruby -I. test/remote_test_suite.rb
+
+clean:
+ rm -f whatever-dl-*.gem
+
+build: clean
+ gem build whatever-dl.gemspec
+
+install: build
+ gem install --user-install whatever-dl-*.gem