make clean_TARGET should just clean the specified target, not all targets.
$ make MATEKF405 WINGFC MATEKF722
...
$ ls
bin cmake_install.cmake inav_2.6.0_WINGFC.hex
CMakeCache.txt inav_2.6.0_MATEKF405.hex Makefile
CMakeFiles inav_2.6.0_MATEKF722.hex src
then
$ make clean_MATEKF405
Scanning dependencies of target clean_MATEKF405
Removing intermediate files for MATEKF405
Built target clean_MATEKF405
should leave other targets, but:
[jrh@eeyore]$ ls
bin CMakeCache.txt CMakeFiles cmake_install.cmake Makefile src
where have my other targets gone?
The following should be a no-op, instead it's a full build.
$ make MATEKF722
Generating MATEKF722/settings_generated.h, MATEKF722/settings_generated.c
Scanning dependencies of target MATEKF722.elf
...
Linking C executable ../../../../bin/MATEKF722.elf
make clean_TARGET should just clean the specified target, not all targets.
then
should leave other targets, but:
where have my other targets gone?
The following should be a no-op, instead it's a full build.