I know I can use install-data-hook to do anything I want after my data files are copied and, this way, I can adjust the file permissions the way I want.
My question, though, becomes before it.
Is there any way I can tell automake to set a standard permission mask for any data group before it gets copied?
I mean I want the resulting install to do its task using the correct mask rather than letting it to use the standard 0644 and after it correct all the file permissions.
In other words, I want the task do get done right at first and not having to fix it later.
Is is possible?
Thanks!
Automake implements the GNU Standards. These state that data files should be installed using the command
$(INSTALL_DATA), which should default to$(INSTALL) -m 644.What you can do is overwrite the value of
INSTALL_DATAin someMakefile.am, then all data files installed by thisMakefile.amwill use that definition. If you have two groups of data files that require different modes, you will have to move them in two different directories so they can have their ownMakefile.