about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-02 10:52:04 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-02 10:52:04 -0700
commit9457a111cfb908af5049c0ca1c4b9a64b458f991 (patch)
treed3a15a4eb60b8b9ece57242fa17391eb6eb541d6
parent03f3d6d452aff584f050c5789180324e5fef4751 (diff)
downloadunicorn-9457a111cfb908af5049c0ca1c4b9a64b458f991.tar.gz
This is to prevent the shebang line from being clobbered
by setup.rb which does the rest of the heavy lifting.
While we're at it, remove the dependency on git, too.
-rw-r--r--GNUmakefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index c5d7f02..a6adfd7 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -84,11 +84,15 @@ $(T): export RUBYLIB := $(test_prefix)/lib:$(RUBYLIB)
 $(T): $(test_prefix)/.stamp
         $(run_test)
 
-install: bin/unicorn
+install: bin/unicorn bin/unicorn_rails
         $(prep_setup_rb)
-        git diff --quiet $<
+        $(RM) -r .install-tmp
+        mkdir .install-tmp
+        cp -p $^ .install-tmp
         $(ruby) setup.rb all
-        git checkout $<
+        $(RM) $^
+        mv $(addprefix .install-tmp/,$(^F)) bin/
+        $(RM) -r .install-tmp
         $(prep_setup_rb)
 
 clean-http11: