]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/commitdiff
Update the makefile to build/install a gem.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 13 Jun 2012 02:03:06 +0000 (22:03 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 13 Jun 2012 02:03:06 +0000 (22:03 -0400)
makefile

index 2a39f6bee4e7999a210492bb80f286fff2e68e8b..ccaac1cdaa52371b40572c21bf53fa8685cfa1cb 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,4 +1,6 @@
-.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.
@@ -7,3 +9,12 @@ test:
 
 remote_test:
        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