The verb compile means to gather data from different locations and arrange it in a book or list.

Synonyms are assemble, arrange, collect, or accumulate.

The word origins from Old French (13th century) compiler meaning “compile, collect” and directly from a Medieval Latin special use of Latin compilare meaning “to plunder, rob”, probably originally” bundle together, heap up” hence “to pack up and carry off”. It comes from com meaning “with, together” plus pilare meaning “to compress, ram down”.

I have to compile these files right now.

He compiled the list of companies.

They compiled the titles of his works.