2023-10-30

I cannot execute "make clean" in my terminal

Apologies for the inconvinience, it is my first time in stackoverflow.

I am trying to compile a make project, but when i do make clean, the terminal returns this error:

rm -rf build
process_begin: CreateProcess(NULL, rm -rf build, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [nRF5_SDK_17.0.2_d674dde/components/toolchain/gcc/Makefile.common:79: clean] Error 2

in the makefile.common, line 70 i have this:

ifneq (,$(filter clean, $(MAKECMDGOALS)))

OTHER_GOALS := $(filter-out clean, $(MAKECMDGOALS))
ifneq (, $(OTHER_GOALS))
$(info Cannot make anything in parallel with "clean".)
$(info Execute "$(MAKE) clean \
  $(foreach goal, $(OTHER_GOALS),&& $(MAKE) $(goal))" instead.)
$(error Cannot continue)
else
.PHONY: clean
clean:
    $(RM) $(OUTPUT_DIRECTORY)  -> this is line 79
endif # ifneq(, $(OTHER_GOALS))

else # ifneq (,$(filter clean, $(MAKECMDGOALS)))

what can i do to solve this problem?

thankyou for your effort!

I tried to changle the output directoy.



No comments:

Post a Comment