Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Just use the export command to set variables across lines.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: