Gets rules and variables in Makefile and returns them.