Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uppercase and lowercase for same word mixed together #21

Open
jinCN opened this issue Sep 19, 2014 · 3 comments
Open

Uppercase and lowercase for same word mixed together #21

jinCN opened this issue Sep 19, 2014 · 3 comments

Comments

@jinCN
Copy link

jinCN commented Sep 19, 2014

you store vars in a style VARNAME_$(d),don't you think there will be something wrong when in a situation uppercase and lowercase for same word are mixed together?

@aostruszka
Copy link
Owner

I'm not sure what you mean - could you give an example?

Variables in make are case sensitive. More over there is nearly no chance that anybody will define variable with name of the sort SRCS_/home/user/some/directory (that is a full name of variable). If anybody makes a mistake and instead of SRCS in his Rules.mk defines Srcs or srcs then he should correct it - there is no provision to guess that, and there will not be since that can break some make files where e.g. some user uses srcs for his internal purposes.

@jinCN
Copy link
Author

jinCN commented Sep 20, 2014

What I mean is not someone stupidly using a wrong case variable name (SRCS to be sRcs),but is generating a wrong case variable TARGETS_/home/user/Some/Directory,this generated name can be correctly used at one place,but other one use TARGETS_/home/user/some/directory to point to it but get nothing.It's just similar to the trap that TARGETS_/home/user/some/AWAY/../directory is not equal to TARGETS_/home/user/some/directory

@torpesco
Copy link

torpesco commented Dec 9, 2014

Can you give a specific example of a Rules.mk file that would result in $(d) expanding with the wrong case in two different places?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants