From 30148919105af831c2ab6ef0eec580757acef8ca Mon Sep 17 00:00:00 2001 From: Patrick Desaulniers Date: Sun, 30 Sep 2018 21:30:06 -0400 Subject: [PATCH] Fix compilation of files with directories in their path --- Makefile.plugins.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.plugins.mk b/Makefile.plugins.mk index 47c7fc75..8e2c63ad 100644 --- a/Makefile.plugins.mk +++ b/Makefile.plugins.mk @@ -77,12 +77,12 @@ all: # Common $(BUILD_DIR)/%.c.o: %.c - -@mkdir -p $(BUILD_DIR) + -@mkdir -p "$(BUILD_DIR)/$(shell dirname $<)" @echo "Compiling $<" @$(CC) $< $(BUILD_C_FLAGS) -c -o $@ $(BUILD_DIR)/%.cpp.o: %.cpp - -@mkdir -p $(BUILD_DIR) + -@mkdir -p "$(BUILD_DIR)/$(shell dirname $<)" @echo "Compiling $<" @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@