From: Michael Orlitzky Date: Wed, 13 Jun 2012 02:03:06 +0000 (-0400) Subject: Update the makefile to build/install a gem. X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fwhatever-dl.git;a=commitdiff_plain;h=f6f147ce604f28a41f47b589dc3b7280938850b5 Update the makefile to build/install a gem. --- diff --git a/makefile b/makefile index 2a39f6b..ccaac1c 100644 --- 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