[nycbug-talk] umask in Makefile

Ray Lai nycbug
Tue Jan 31 15:11:37 EST 2006


On Tue, Jan 31, 2006 at 02:43:37PM -0500, George Georgalis wrote:
> Is there any way to set the umask within a makefile for all the
> files it creates? with a default umask of 002 in my shell, I'd
> like to have make use 022 without starting each line that creates
> a file with "umask 022 ;"
> 
> I don't particulary want to write a wrapper to call make, but that
> seems the only way. Ideas?

http://groups.google.com/group/gnu.utils.bug/browse_thread/thread/277afe41cc5c0d67/22cc0a52143931ea?lnk=st&q=makefile+umask&rnum=1&hl=en

Not much better, but it's an alternative.

-Ray-



More information about the talk mailing list