build every book only once

At the moment a wrong check makes it possible that affected books
are build several times. That's not useful and should be changed.

Change-Id: I27c016c6d4ef98fead53609013c46302fa8b67d2
Merge "build every book only once"