Better dependence control in Makefile