Add correct dependencies to make deps rule

Review 1902 by @larkost
Closes #2779