@@ -55,16 +55,12 @@ def build(profile: str = typer.Option(None, "--profile", "-p", callback=unsuppor
5555
5656 if is_cmake : # Repo uses CMake, so execute CMake commands.
5757 print ("[bold blue]CMake project detected.\n " )
58- # If the build directory doesn't exist, make it and configure CMake
59- if not os .path .exists ("build" ):
60- run_command (["docker" , "compose" , "run" , "--rm" , "ner-gcc-arm" , "mkdir" , "-p" , "build" ], stream_output = True )
61- run_command (["docker" , "compose" , "run" , "--rm" , "ner-gcc-arm" , "cmake" , "-S" , "." , "-B" , "build" ], stream_output = True )
6258 if clean :
63- run_command (["docker" , "compose" , "run" , "--rm" , "ner-gcc-arm" , "cmake" , "--build" , "build " , "--target" , "clean" ], stream_output = True )
59+ run_command (["docker" , "compose" , "run" , "--rm" , "ner-gcc-arm" , "cmake" , "--build" , ". " , "--target" , "clean" ], stream_output = True )
6460 else :
65- run_command (["docker" , "compose" , "run" , "--rm" , "ner-gcc-arm" , "cmake" , "--build" , "build " , f"-j{ os .cpu_count ()} " ], stream_output = True )
61+ run_command (["docker" , "compose" , "run" , "--rm" , "ner-gcc-arm" , "cmake" , "--build" , ". " , f"-j{ os .cpu_count ()} " ], stream_output = True )
6662 else : # Repo uses Make, so execute Make commands.
67- print ("[bold blue]Makefile project detected.\n " ) # REMOVE THIS
63+ print ("[bold blue]Makefile project detected.\n " )
6864 if clean :
6965 run_command (["docker" , "compose" , "run" , "--rm" , "ner-gcc-arm" , "make" , "clean" ], stream_output = True )
7066 else :
0 commit comments