Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@ry /Makefile
Created Feb 21, 2011

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
Something went wrong with that request. Please try again.