makefile: use automatic variables

Continuing the tradition of learning Make by studying your makefiles. :)