summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-05-21 11:33:16 -0700
committerEric Wong <normalperson@yhbt.net>2009-05-22 01:54:21 -0700
commit5d11428632bf40d3c20313f56085dfd4921c1265 (patch)
tree456aeb8c82d77cfc515f76a8f7b910b7085f6917
parent0d726281fe276ea36007ae9715d9085cede8d04c (diff)
Easier to maintain and add new executables this way
-rw-r--r--GNUmakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 6beed35..1145143 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -53,8 +53,10 @@ $(test_prefix)/.stamp: $(inst_deps)
         $(MAKE) -C $(test_prefix) http11 shebang
         > $@
 
+bins := $(wildcard bin/*)
+
 # this is only intended to be run within $(test_prefix)
-shebang: bin/unicorn bin/unicorn_rails
+shebang: $(bins)
         $(ruby) -i -p -e '$$_.gsub!(%r{^#!.*$$},"#!$(ruby_bin)")' $^
 
 t_log := $(T_log) $(T_n_log)
@@ -97,7 +99,7 @@ $(T): export RUBYLIB := $(test_prefix)/lib:$(RUBYLIB)
 $(T): $(test_prefix)/.stamp
         $(run_test)
 
-install: bin/unicorn bin/unicorn_rails
+install: $(bins)
         $(prep_setup_rb)
         $(RM) -r .install-tmp
         mkdir .install-tmp