Open keelung-yang opened 5 years ago
Hi @keelung-yang, could you please point to the documentation page which mentioned this target? There is only clean
target for build output. You can cancel config changes by delete sdkconfig file.
Hi @keelung-yang, could you please point to the documentation page which mentioned this target? There is only
clean
target for build output. You can cancel config changes by delete sdkconfig file.
Hi @igrr There is no distclean target indeed, according search results of official documents.
But it's a standard target for "delete all files in the current directory (or created by this makefile) that are created by configuring or building the program", see https://www.gnu.org/prep/standards/html_node/Standard-Targets.html. And most of projects using gnu toolchain also support distclean target, such as u-boot, linux kernel, ffmpeg and so on.
Literally, the config-clean target is doing what distclean doing. So, why not just rename config-clean to distclean as the 'standard' target in gnu toolchain?
BTW, the config-clean did not clean my menuconfig changes in the lastest esp-idf.
sdkconfig is of a project is often checked into git, so it is not so certain that it should be considered a build output. There are some build system targets which help you manipulate this settings file, but we treat it differently from the files generated in build
directory. If you find distclean
target useful, you may add it to your project makefile, as rm -f sdkconfig
. However for some projects, sdkconfig file is included into the "distribution", so removing it would not be correct.
@keelung-yang Feel free to reopen if the issue still exists, thanks.
@Alvin1Zhang I cannot re-open this issues since it's not closed by me and I'm not a collaborator.
There are several questions still not clear, so I don't think it should be closed.
Issue reopened. @keelung-yang
@keelung-yang Thanks for reporting this.
I want to reset all configurations in menuconfig, so I execute this:
There is no distclean target in project_config.mk. I also tried
make config-clean
, still not working: my changes still in menuconfig