Skip to content

[cmake] make clean_TARGET cleans all targets #6135

Description

@stronnag

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions