Therefore, some anonymous developers decided to use a ridiculous agreement on the use of spaces in the names of folders containing their source files. I would change these folders so as not to use spaces, but unfortunately I am not making the rules here, so this is not an option (although I would like it to be).
LUAC = luac SRC_DIR = . SOURCE = \ stupid/naming\ convention/a.lua \ stupid/naming\ convention/very\ annoying/b.lua \ vpath .lua $(SRC_DIR) OUT_DIR = ../out/ OUTPUT = $(patsubst %.lua, $(OUT_DIR)/%.luac, $(SOURCE)) all: $(OUTPUT) $(OUT_DIR)/%.luac: %.lua $(LUAC) "$<" mv luac.out " $@ " .PHONY: all
Simple makefile. All he wanted to do was compile all the Lua files that I have and put them in the output directory.
No matter what I do, it continues to split the SOURCE line into spaces in the folder, so I end up with a nice error, for example:
make: *** No rule to make target `stupid/naming ', needed by `all'. Stop.
Is there any way to fix this without renaming folders?
Thanks in advance.
source share