Y
Hacker News
new
|
ask
|
show
|
jobs
by
JacksCracked
3221 days ago
Each logical line of a makefile is executed in its own shell. This means that variables cannot be set across lines and directory changes cannot be changed across lines.
1 comments
ComputerGuru
3221 days ago
Just use the export command to set variables across lines.
link