Which makefile is Eclipse using?
On the command line you’d need to build from the correct directory - meaning with the respective makefile. For Eclipse I suppose you need to select the correct one some other way.
$(TARGETBIN) : $(source)
cd “$(FIRMWARE)/main” && make all PLATFORM=$(PLATFORM) APPDIR="$(APPDIR)" $(MAKEOPTS)
cd “$(FIRMWARE)/modules” && make clean all PLATFORM=$(PLATFORM) APPDIR="$(APPDIR)" $(MAKEOPTS)
(sorry I don’t know how to format code here)
So when you execute a make, you cd into the firmware_dir/main and make with the appropriate arguments.
Upon a clean, you cd into modules and make clean that? (I think that part is weird, but I don’t really know).
But I can just cd and execute the commands from the command line, the output is the same.
// your block of text (for C++ you'd use ```cpp)
where each set of these accent graves lives on its own line without anything else (including blanks) on the same line
And for the `makefile` I'm not an expert, but I think it's just the first one that provides the entry point and then traverses from `makefile` to `makefile` as long the relative references can be solved.