Skip to content

Instantly share code, notes, and snippets.

@ry
Created February 21, 2011 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ry/836511 to your computer and use it in GitHub Desktop.
Save ry/836511 to your computer and use it in GitHub Desktop.
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