r26600: Provide dir variable with current basedir in Makefile.