Skip to content

Commit

Permalink
Remove -e from echo command into makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
samparent97 committed Apr 16, 2024
1 parent e458ae9 commit 2525418
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions firmware/cmake/generate_cubemx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -34,4 +37,4 @@ Makefile: $(IOC_FILE)
# This is used by build_cubemx.cmake
echo "" >> Makefile
echo "%.value:" >> Makefile
echo -e "\t@echo \$$(\$$*)" >> Makefile
echo "\t@echo \$$(\$$*)" >> Makefile

0 comments on commit 2525418

Please sign in to comment.