commit 30148919105af831c2ab6ef0eec580757acef8ca
parent b5d98f4bd3646de6ebb8627cf0bf5e4c16499714
Author: Patrick Desaulniers <desaulniers.patrick@carrefour.cegepvicto.ca>
Date: Sun, 30 Sep 2018 21:29:39 -0400
Fix compilation of files with directories in their path
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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 $@