[build] Make Does Does Not Work with Filenames Containing Spaces
Description
I organize my folders using spaces, when I used the command make nanvix, it utilize some command with mkdir and started creating a lot of folders.
Ex: My file path was: "/home/gustavo/Ciencias da computação/5º semestre/Sistemas Operacionais/"
It created the folder "Ciencias" in /home/gustavo, the folders "da", "computação/5º", "semestre/Sistemas" and the folder "Operacionais" in the current path.
Workaround
Tweak build scripts to escape special characters and spaces.
Additional Information
- https://stackoverflow.com/questions/9838384/can-gnu-make-handle-filenames-with-spaces
- http://savannah.gnu.org/bugs/?712
@flametuner Thnanks for the repport.
Actually this is a well-known problem related to make (http://savannah.gnu.org/bugs/?712).
A workaround would be to tweak our build scripts to escape special characters and spaces.
I didn't get to test it but I believe the problem is the shellscripts
if you don't put double quotes in $workdir the words will break and that's why you should be creating the folders
https://github.com/koalaman/shellcheck/wiki/SC2086