Makefile: fix dependency generation