[inline:]

On 1/4/2012 6:00 PM, Mark LaPierre wrote:

Hey Paul,

If you want a file to be executable it must be +x. If the file is read as input to another program it needs not be +x.

I've always known that to execute a file, it must be "+x". If I am not directly executing it, who needs the "+x". The leap of faith regarding makefiles came from the answers in this list. I just never really had a proper mindset to what the relationship of make to makefile and, given that there is no #! in the makefile yet it has lots of stuff which sure makes it feel like a "shell-style" script, I needed someone to tell me "this is how to look at a makefile". I got that thanks to this list and a bunch more info which is good for me.

Example 1:

[...]

Example 2:

[...].


I've know this for awhile (though I don't want to embarress myself too much by saying how long it took me to figure out "#! /bin/whatever" as I was stuck for the longest time on looking at it going "but the # means its a comment" (smile))

Now, to be specific to your question, the same principle applies. Your -x Makefile/makefile is not an executable file. It contains a list of instructions the /usr/bin/make executable interprets. The executable is /usr/bin/make.

I wish I had been able to think that through ... something about a makefile seemed different and I just didn't make the leap. Mental block, brain fart, whatever. Its been bugging me for a long time and I just got so frustrated at not being able to see it.



You do not have to supply the name of the makefile, as long its name is makefile, because /usr/bin/make defaults to that file name

I'm using Makefile solely out of habit and have created alternate "make files" of various names.

The makefile is not being executed but /usr/bin/make is executed and it is using the contents of the makefile as input to guide its processing.

Yup, it all makes sense now

Thanks,
Paul


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to