function plugin( dir, cwd ) {
	var opts;
	var args;

	opts = {};
	opts.cwd = dir;
	opts.stdio = 'inherit';

	args = [];

	// Environment variables:
	args.push( 'REPL_DIR='+cwd );

	// Target:
	args.push( 'repl' );

	spawn( 'make', args, opts );
}
Plugin for launching a REPL.

@param {string} dir - Makefile directory
@param {string} cwd - current working directory
@param {string} subpath - subdirectory path