make Makefile more DRY