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

Malaysia to Papua New Guinea by motorcycle?

List of Bhojpuri films

PHP code is not being executed, instead code shows on the page