Make an index file