Make installation Makefile take into account dependencies.