What is $/makefile.inc.system in makefile?

What is $/makefile.inc.system in makefile?



In the makefile, the following include statement.


include $/makefile.inc.system



What does $ mean here?

When I changed ./ to $/ in the other command lines, it is not working.

But in the include $/makefile.inc.system, it is working as ./

I couldn't find any explanation about it.


$


./


$/




1 Answer
1



$/ in this case is just expanding a makefile variable like you would any other variable, e.g. $(foo). Somewhere in the main makefile you should see the variable / defined with something like / = somedir.


$/


$(foo)


/


/ = somedir





Thanks for the answer.Is there any difference with ./makefile.inc.system? What is the difference between $/makefile.inc and ./makefile.inc? Why use $/makefile.inc form?
– J. Shin
Aug 23 at 18:35






You'll need to look at the makefile to determine why it uses a variable instead of hard-coding the path, my guess is it's to allow makefile.inc to be dynamically included from somewhere else.
– user657267
Aug 24 at 4:46


makefile.inc





I couldn't find "/=" and include $/makefile.ins is working, but cp -p ./test.c .. is changed to cp -p $/test.c .. , then fail. It looks still confusing.
– J. Shin
Aug 30 at 19:39



include $/makefile.ins


cp -p ./test.c ..


cp -p $/test.c ..






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)