From 2525418fba3df5ff9f891c190062079206a2e4ca Mon Sep 17 00:00:00 2001 From: samparent97 Date: Tue, 16 Apr 2024 15:04:18 -0400 Subject: [PATCH] Remove -e from echo command into makefile --- firmware/cmake/generate_cubemx.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/firmware/cmake/generate_cubemx.mk b/firmware/cmake/generate_cubemx.mk index bb8bd131f..def8d0db2 100644 --- a/firmware/cmake/generate_cubemx.mk +++ b/firmware/cmake/generate_cubemx.mk @@ -14,7 +14,9 @@ CUBEMX_GEN_SCRIPT = cubemx_script.txt # Makefile, i.e. whenever IOC_FILE has been updated but new code has not been # generated. -Makefile: $(IOC_FILE) +.PHONY: Makefile + +GenerateCubeMx: $(IOC_FILE) # Create an file containing commands to generate the cubemx code. echo "config load \"$(IOC_FILE)\"" > $(CUBEMX_GEN_SCRIPT) echo "project generate ./" >> $(CUBEMX_GEN_SCRIPT) @@ -25,6 +27,7 @@ Makefile: $(IOC_FILE) rm $(CUBEMX_GEN_SCRIPT) +Makefile: $(IOC_FILE) # Add a recipe for building the sources to objects without linking them. # This is used by build_cubemx.cmake echo "" >> Makefile @@ -34,4 +37,4 @@ Makefile: $(IOC_FILE) # This is used by build_cubemx.cmake echo "" >> Makefile echo "%.value:" >> Makefile - echo -e "\t@echo \$$(\$$*)" >> Makefile \ No newline at end of file + echo "\t@echo \$$(\$$*)" >> Makefile \ No newline at end of file