Remove unnecessary statements and temp variables
[ruby-mogilefs-client.git] / GNUmakefile
blobcf17c86537be6b3267c5eb5538920a37dff0fb91
1 # use GNU Make to run tests in parallel, and without depending on Rubygems
2 all:: test
4 T := $(wildcard test/test*.rb)
5 TO := $(subst .rb,.log,$(T))
7 test: $(T)
8 @cat $(TO) | ruby test/aggregate.rb
9 @$(RM) $(TO)
10 clean:
11 $(RM) $(TO) $(addsuffix +,$(TO))
13 t = $(basename $(notdir $@))
14 t_log = $(subst .rb,.log,$@)
16 $(T):
17 @echo $(t); ruby -I lib $@ $(TEST_OPTS) > $(t_log)+ 2>&1
18 @mv $(t_log)+ $(t_log)
20 Manifest.txt:
21 git ls-files > $@+
22 mv $@+ $@
24 .PHONY: $(T) Manifest.txt