Rscons.clean() removes any directories it created if they are empty
This commit is contained in:
1 parent
770a22250a
commit
5c6239ea6d
6 files changed
+53
-3
No files matched your search
@@ -24,7 +24,7 @@ module Rscons
|
||||
# Return the name of the target or false on failure.
|
||||
def standard_build(short_cmd_string, target, command, sources, env, cache)
|
||||
unless cache.up_to_date?(target, command, sources)
|
||||
FileUtils.mkdir_p(File.dirname(target))
|
||||
cache.mkdir_p(File.dirname(target))
|
||||
FileUtils.rm_f(target)
|
||||
return false unless env.execute(short_cmd_string, command)
|
||||
cache.register_build(target, command, sources)
|
||||
|
||||
Reference in new issue
Block a user