added ugly 'build' task to makefile

This commit is contained in:
brianc 2011-02-22 22:51:30 -06:00
parent edea8967d2
commit 7f6a5082b2

View File

@ -11,7 +11,7 @@ params := -u $(user) --password $(password) -p $(port) -d $(database) -h $(host)
node-command := xargs -n 1 -I file node file $(params) node-command := xargs -n 1 -I file node file $(params)
.PHONY : test test-connection test-integration bench .PHONY : test test-connection test-integration bench test-libpg build
test: test-unit test: test-unit
test-all: test-unit test-integration test-all: test-unit test-integration
@ -19,13 +19,16 @@ test-all: test-unit test-integration
bench: bench:
@find benchmark -name "*-bench.js" | $(node-command) @find benchmark -name "*-bench.js" | $(node-command)
build:
@node-waf configure build
test-unit: test-unit:
@find test/unit -name "*-tests.js" | $(node-command) @find test/unit -name "*-tests.js" | $(node-command)
test-connection: test-connection:
@node script/test-connection.js $(params) @node script/test-connection.js $(params)
test-libpg: test-unit test-libpg: build test-unit
@find test/integration/client -name "*-tests.js" | $(node-command) --libpg true @find test/integration/client -name "*-tests.js" | $(node-command) --libpg true
test-integration: test-connection test-integration: test-connection