From 1ad45f71e75bfd43ac28d99547c066d9a421340a Mon Sep 17 00:00:00 2001 From: brianc Date: Fri, 24 Dec 2010 20:09:55 -0600 Subject: [PATCH] slight makefile refactoring --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0931ed7..693571c 100644 --- a/Makefile +++ b/Makefile @@ -7,14 +7,16 @@ port=5432 database=postgres verbose=false +params := -u $(user) --password $(password) -p $(port) -d $(database) -h $(host) --verbose $(verbose) + test-connection: - @node script/test-connection.js -u $(user) --password $(password) -p $(port) -d $(database) -h $(host) --verbose $(verbose) + @node script/test-connection.js $(params) test-unit: - @find test/unit -name "*-tests.js" | xargs -n 1 -I file node file --verbose $(verbose) + @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 -u $(user) --password $(password) -p $(port) -d $(database) -h $(host) --verbose $(verbose) + @find test/integration -name "*-tests.js" | xargs -n 1 -I file node file $(params) test-all: test-unit test-integration test: test-unit