Created
February 21, 2011 01:15
-
-
Save ry/836511 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NODE?=`which node` | |
# Need 'echo -n' | |
SHELL=/bin/bash | |
default: test | |
FAIL=echo FAIL | |
PASS=echo PASS | |
test: | |
@echo Using $(NODE) | |
@for i in test-*.js; do \ | |
echo -n "$$i: "; \ | |
$(NODE) $$i 2>/dev/null > /dev/null && $(PASS) || $(FAIL); \ | |
done | |
.PHONY: test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment