RM = rm
ECHO = echo
JSCOVERAGE = jscoverage

help:
	@${ECHO} "usage:"
	@${ECHO} "  make clean"
	@${ECHO} "  make check"
	@${ECHO} "  make check-sample"

check:
	${RM} -fr src-instrumented
	${JSCOVERAGE} --encoding=UTF-8 src src-instrumented
	@${ECHO} "Access http://localhost/.../src-instrumented/jscoverage.html?test/test.html"
	@${ECHO} "       http://localhost/.../src-instrumented/jscoverage.html?main/jscripttype.html"

check-sample:
	${RM} -fr test-sample-instrumented
	${JSCOVERAGE} --encoding=UTF-8 test-sample test-sample-instrumented
	@${ECHO}
	@${ECHO} "Access http://localhost/.../test-sample-instrumented/jscoverage.html?test.html"

clean:
	${RM} -fr test-sample-instrumented
	${RM} -fr src-instrumented
