Makefile and tools for R packages