GNUmakefile in io_splice-1.0.0 vs GNUmakefile in io_splice-2.0.0
- old
+ new
@@ -186,9 +186,12 @@
all:: test
build: $(ext)
test: test-unit
-test-unit: build
- $(RUBY) -I lib:ext/io_splice test/test_io_splice.rb
-.PHONY: .FORCE-GIT-VERSION-FILE doc manifest man test
+test_unit := $(wildcard test/test_*.rb)
+$(test_unit): build
+ $(RUBY) -I lib:ext/io_splice $@
+test-unit: $(test_unit)
+
+.PHONY: .FORCE-GIT-VERSION-FILE doc manifest man test $(test_unit)