DRY Makefile according to @tianon's suggestion