base.mk: move to a rule per target.