It seems spaces in file names give makefile a hard time (for example here).
We can control file names, but not the directory name where our project resides.
How to fix this makefile inside
~/Downloads/OREN ISH
that uses a$(shell pwd)
:
BASEDIR = $(shell pwd)
${BASEDIR}/main: ${BASEDIR}/main.c
gcc $< -o $@
We get the following error (that disappears when ${BASEDIR}
is removed):
make: Circular /home/oren/Downloads/OREN <- /home/oren/Downloads/OREN dependency dropped.
make: *** No rule to make target 'ISH/main.c', needed by '/home/oren/Downloads/OREN'. Stop.