diff options
| author | ruki <[email protected]> | 2015-06-08 14:38:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-08 14:38:34 +0800 |
| commit | d3258129a4a1ba9886b7e8d773ba8e4ec956b4a6 (patch) | |
| tree | 23c4c9a6087148c0c65f720fd5e87742429e9108 /xmake/scripts/base/clean.lua | |
| parent | 4d2fbb049f34e5899d962a148bf5e560fe9d978c (diff) | |
make switches to configure file
Diffstat (limited to 'xmake/scripts/base/clean.lua')
| -rw-r--r-- | xmake/scripts/base/clean.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/scripts/base/clean.lua b/xmake/scripts/base/clean.lua index 3426dc41e..e31466bdc 100644 --- a/xmake/scripts/base/clean.lua +++ b/xmake/scripts/base/clean.lua @@ -61,7 +61,13 @@ function clean._remove_target(target_name, target, target_only, buildir) -- check assert(target_name and target) - + + -- remove the configure file + local configfile = rule.configfile(target) + if configfile and not clean._remove(configfile) then + return false + end + -- remove the target file if not clean._remove(rule.targetfile(target_name, target, buildir)) then return false |
