From 9d96af6b8b643ada44336b8e734d23452e1b8dd6 Mon Sep 17 00:00:00 2001 From: Pablo Biagioli Date: Mon, 5 Sep 2016 11:47:07 -0300 Subject: [PATCH] explicitly create build directory The command "make all" in ubuntu 16.04 was giving me a hard time, so I investigated and found the build folder wasn't being created. My proposed fix is to add explicitly the dependency, so it first creates the directory, and after that it makes all the other steps. --- CubeMX2Makefile.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CubeMX2Makefile.tpl b/CubeMX2Makefile.tpl index 712c1a3..4bf81a8 100644 --- a/CubeMX2Makefile.tpl +++ b/CubeMX2Makefile.tpl @@ -67,7 +67,7 @@ LIBDIR = LDFLAGS = $LDMCU -specs=nano.specs -T$$(LDSCRIPT) $$(LIBDIR) $$(LIBS) -Wl,-Map=$$(BUILD_DIR)/$$(TARGET).map,--cref -Wl,--gc-sections # default action: build all -all: $$(BUILD_DIR)/$$(TARGET).elf $$(BUILD_DIR)/$$(TARGET).hex $$(BUILD_DIR)/$$(TARGET).bin +all: $$(BUILD_DIR) $$(BUILD_DIR)/$$(TARGET).elf $$(BUILD_DIR)/$$(TARGET).hex $$(BUILD_DIR)/$$(TARGET).bin ####################################### # build the application