summaryrefslogtreecommitdiff
path: root/xmake/modules/target/action/clean/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/modules/target/action/clean/main.lua')
-rw-r--r--xmake/modules/target/action/clean/main.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/target/action/clean/main.lua b/xmake/modules/target/action/clean/main.lua
index 8871ca21f..0335aa648 100644
--- a/xmake/modules/target/action/clean/main.lua
+++ b/xmake/modules/target/action/clean/main.lua
@@ -63,6 +63,10 @@ function main(target)
-- remove all?
if option.get("all") then
+ -- remove config files
+ local _, configfiles = target:configfiles()
+ remove_files(configfiles)
+
-- TODO remove the config.h file (deprecated)
remove_files(target:configheader())