about summary refs log tree commit homepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-30 13:41:26 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-30 13:44:44 -0700
commit9cc4f87353b84f5229d4a8bae78260c24cd02154 (patch)
tree06bf374fea3f53e51849b5f4a1d893a99a34fc22 /GNUmakefile
parent31533ab442959f975306c4275daa6c6770d29246 (diff)
downloadunicorn-9cc4f87353b84f5229d4a8bae78260c24cd02154.tar.gz
This should make it easier to test and run unreleased
versions.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 8becc89..3087082 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -227,6 +227,11 @@ verify:
         test `git rev-parse --verify HEAD^0` = \
              `git rev-parse --verify refs/tags/v$(VERSION)^{}`
 
+gem: $(pkggem)
+
+install-gem: $(pkggem)
+        gem install $(CURDIR)/$<
+
 $(pkggem): manifest
         gem build $(rfpackage).gemspec
         mkdir -p pkg
@@ -249,6 +254,9 @@ release: verify package $(release_notes) $(release_changes)
           $(rfproject) $(rfpackage) $(VERSION) $(pkggem)
         rubyforge add_file \
           $(rfproject) $(rfpackage) $(VERSION) $(pkgtgz)
+else
+gem install-gem: GIT-VERSION-FILE
+        $(MAKE) $@ VERSION=$(GIT_VERSION)
 endif
 
 .PHONY: .FORCE-GIT-VERSION-FILE doc $(T) $(slow_tests) manifest man