From 07db5f6c194055052d0b4ad7b1b4856aa74c3646 Mon Sep 17 00:00:00 2001 From: briantom Date: Sat, 12 Jun 2021 09:54:07 -0700 Subject: [PATCH] makefile now supports projects root with spaces --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 77ea2da..9367c1f 100644 --- a/Makefile +++ b/Makefile @@ -27,15 +27,15 @@ NIF_SRC=\ calling_from_make: mix compile -all: $(PRIV_DIR) $(LIB_NAME) +all: _priv_dir _lib_name -$(LIB_NAME): $(NIF_SRC) - $(CC) $(CFLAGS) -shared $(LDFLAGS) $^ -o $@ +_lib_name: $(NIF_SRC) + $(CC) $(CFLAGS) -shared $(LDFLAGS) $^ -o "$(LIB_NAME)" -$(PRIV_DIR): - mkdir -p $@ +_priv_dir: + mkdir -p "$(PRIV_DIR)" clean: rm -f $(LIB_NAME) -.PHONY: all clean +.PHONY: all clean _priv_dir _lib_name