diff options
| author | ruki <[email protected]> | 2019-06-13 00:26:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-06-12 20:39:14 +0800 |
| commit | 34b1fe79cfa33e2e185a520e05b3d7c8d70dd01c (patch) | |
| tree | bc4a00d2adce8da3137adaf4b3e54741b86531d0 /xmake/rules/wdk/env/xmake.lua | |
| parent | bf7331c60d83218fbf58431a7d757420549b60fa (diff) | |
improve clean action
Diffstat (limited to 'xmake/rules/wdk/env/xmake.lua')
| -rw-r--r-- | xmake/rules/wdk/env/xmake.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmake/rules/wdk/env/xmake.lua b/xmake/rules/wdk/env/xmake.lua index 2f6c30965..07d9c5f5f 100644 --- a/xmake/rules/wdk/env/xmake.lua +++ b/xmake/rules/wdk/env/xmake.lua @@ -83,10 +83,9 @@ rule("wdk.env") -- clean files after_clean(function (target) - for _, file in ipairs(target:data("wdk.cleanfiles")) do - os.rm(file) - end - target:data_set("wdk.cleanfiles", nil) + import("core.project.config") + import("private.action.clean.remove_files") + remove_files(path.join(config.buildir(), ".wdk")) end) -- define rule: umdf |
