From 4aa444350563ed4d8fb8d3cc8d5f35a97314a736 Mon Sep 17 00:00:00 2001 From: brianc Date: Fri, 24 Dec 2010 20:22:15 -0600 Subject: [PATCH] Makefile cleanup --- Makefile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 693571c..e5ff2f8 100644 --- a/Makefile +++ b/Makefile @@ -9,16 +9,18 @@ verbose=false params := -u $(user) --password $(password) -p $(port) -d $(database) -h $(host) --verbose $(verbose) +node-command := xargs -n 1 -I file node file $(params) + +.PHONY : test test-connection test-integration +test: test-unit + +test-all: test-unit test-integration + +test-unit: + @find test/unit -name "*-tests.js" | $(node-command) + test-connection: @node script/test-connection.js $(params) -test-unit: - @find test/unit -name "*-tests.js" | xargs -n 1 -I file node file $(params) - test-integration: test-connection - @find test/integration -name "*-tests.js" | xargs -n 1 -I file node file $(params) - -test-all: test-unit test-integration -test: test-unit - -.PHONY : test + @find test/integration -name "*-tests.js" | $(node-command)