From ba3a19c73b58e7eb48067da3af5ef7f65bc34f87 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 21 May 2009 11:33:16 -0700 Subject: GNUmakefile: glob all files in bin/* Easier to maintain and add new executables this way --- GNUmakefile | 6 ++++-- 1 file 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 -- cgit v1.2.3-24-ge0c7