Skip to content

Commit

Permalink
makefile now supports projects root with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
btomtom5 committed Jun 12, 2021
1 parent 8ee684d commit 07db5f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 07db5f6

Please sign in to comment.