diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-10-08 08:49:22 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-10-08 08:49:22 +0000 |
commit | f20274e84169e18a73a5cd341b6bc31b625b83ce (patch) | |
tree | 93a251160bcdde87fce225e4709842e69f97ac6f /GNUmakefile | |
parent | 861481436b933bf4b8d647c43191c701651f16e4 (diff) | |
download | unicorn-f20274e84169e18a73a5cd341b6bc31b625b83ce.tar.gz |
Automation is nice, the makefile needs some cleanup
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/GNUmakefile b/GNUmakefile index 2a12667..5519e84 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -24,14 +24,11 @@ endif RUBY_ENGINE := $(shell $(RUBY) -e 'puts((RUBY_ENGINE rescue "ruby"))') -isolate_libs := tmp/isolate/.$(RUBY_ENGINE)-$(RUBY_VERSION).libs -MYLIBS = $(RUBYLIB):$(shell cat $(isolate_libs) 2>/dev/null || \ - (test -f ./script/isolate_for_tests && \ - $(RUBY) ./script/isolate_for_tests >/dev/null && \ - cat $(isolate_libs) 2>/dev/null)) - -echo: - @echo $(MYLIBS) +isolate_libs := tmp/isolate/$(RUBY_ENGINE)-$(RUBY_VERSION).mk +$(isolate_libs): script/isolate_for_tests + @$(RUBY) script/isolate_for_tests +-include $(isolate_libs) +MYLIBS = $(RUBYLIB):$(ISOLATE_LIBS) # dunno how to implement this as concisely in Ruby, and hell, I love awk awk_slow := awk '/def test_/{print FILENAME"--"$$2".n"}' 2>/dev/null |