0

I got a problem when I want to use make, containing a variable linking to my folder.

Like this :

DIR_ST = I\ \:\ The\ Scared\ Stones

SRC_ST = $(DIR_ST)/main.c

OBJ_ST = $(SRC_ST:.c=.o)

But when I want to compile like this:

all : $(ST)
$(ST) : $(OBJ_ST)
$(CC) $(OBJ_ST) -o strategic

i got this error:

make: *** No rule to make target `I \: The Sacred Stones/main.o', needed by `binaries/strategic'.  Stop.

How can I use this folder's name in a Makefile?

Maroun
  • 94,125
  • 30
  • 188
  • 241
Théo
  • 13
  • 2

1 Answers1

0

you could place a symbolic link in the current directory to the 'I:\ The Scared Stones directory

suggest using a link name that does not have any spaces

user3629249
  • 16,402
  • 1
  • 16
  • 17