diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-05-21 11:33:16 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-05-21 11:33:16 -0700 |
commit | ba3a19c73b58e7eb48067da3af5ef7f65bc34f87 (patch) | |
tree | 07728ef0afcd9c54840675b3f66eb2c983029d71 /GNUmakefile | |
parent | fa4ecac90b3728ec4bd67504c49047f41c0d9f80 (diff) | |
download | unicorn-ba3a19c73b58e7eb48067da3af5ef7f65bc34f87.tar.gz |
Easier to maintain and add new executables this way
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 6 |
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 |