diff options
| author | ruki <[email protected]> | 2019-02-05 00:49:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-04 22:54:44 +0800 |
| commit | 1264a68749fb9a17262d11c53c9ff7bd884b1160 (patch) | |
| tree | 28469a7d96dd6820a0b9f6583563d2407d1a9318 | |
| parent | 9b0e2b87b998b58788f3256c20ffc23f0b49190a (diff) | |
fix clean for phony target
| -rw-r--r-- | xmake/actions/clean/main.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/actions/clean/main.lua b/xmake/actions/clean/main.lua index ab0c8dd99..b5c90cd75 100644 --- a/xmake/actions/clean/main.lua +++ b/xmake/actions/clean/main.lua @@ -52,6 +52,11 @@ end -- do clean target function _do_clean_target(target) + -- is phony? + if target:isphony() then + return + end + -- remove the target file _remove(target:targetfile()) |
