makefile: use automatic variables
Merge pull request #6 from davidchambers/makefile

makefile: use automatic variables