Automatically track dependencies to library tasks.