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 $@