rename *.r to *.R to cope with makefile