If you are already using the command line you could install pdftk and then, after generating your individual PDFs, it is just
pdftk
pdftk *.pdf cat output merged.pdf