Simplify step of building INDEX file.

Simplify step of building INDEX file by specifying `tmp` as direct output of `make index`.