change permissions on relevant files so that all files have consistent permissions for their format.
the guide stating permissions for each format is ./permissions.txt
makefiles: easier way to fetch the M variable