diff options
| author | ruki <[email protected]> | 2023-01-31 00:52:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-01-31 00:52:14 +0800 |
| commit | 7dccbc709bafaec3be01d9723b7b9150f7092a5b (patch) | |
| tree | 958137b71c156294f470b68933e6e1990a2c3f3a | |
| parent | bcbc43a6957687e065e6e1c36b0a824e4db6ac1b (diff) | |
improve clean
| -rw-r--r-- | xmake/actions/clean/main.lua | 4 | ||||
| -rw-r--r-- | xmake/modules/target/action/clean/main.lua | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/xmake/actions/clean/main.lua b/xmake/actions/clean/main.lua index 4ff09d592..40c73faa1 100644 --- a/xmake/actions/clean/main.lua +++ b/xmake/actions/clean/main.lua @@ -161,8 +161,8 @@ function main() -- get the target name local targetname = option.get("target") - -- config it first - task.run("config", {target = targetname, require = false, verbose = false}) + -- local config first + config.load() -- enter project directory local oldir = os.cd(project.directory()) 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()) |
