]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - makefile
Update the makefile to build/install a gem.
[dead/whatever-dl.git] / makefile
index 9e702a36b19787052a745a9485c112cb5decaff6..ccaac1cdaa52371b40572c21bf53fa8685cfa1cb 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,7 +1,20 @@
-.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