Ah, sorry, codegen.py is removed when making the tar file, the assumption being that all the files have been generated when making the tar file, so it isn't needed after that. If you check MAGMA out from the Git repo, it would be there.
Did you update magma_z.h or change or remove any files in the include directory? Normally, in a release, the [sdc] versions of files should be newer than the [z] version from which they are generated:
magma-2.8.0> ls -l include/magma_[sdcz].h
-rw-r--r-- 1 mgates users 58122 Mar 28 12:27 include/magma_c.h
-rw-r--r-- 1 mgates users 53785 Mar 28 12:27 include/magma_d.h
-rw-r--r-- 1 mgates users 53090 Mar 28 12:27 include/magma_s.h
-rw-r--r-- 1 mgates users 58772 Mar 28 12:22 include/magma_z.h
Mark