Skip to content

Commit c1c134e

Browse files
author
Sam Kleinman
committed
build: link cleanup to fix recurring build error
1 parent 48b8fd5 commit c1c134e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/makefile-builder/links.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ def make_link(make_target, link_target, makefile_block):
3636
m.append_var('LINKS', make_target, makefile_block)
3737
m.target(make_target, link_location, makefile_block)
3838

39-
4039
if makefile_block == 'redirect':
41-
m.job('@rm -rf $@/')
40+
m.job('rm -rf %s' % make_target, block=makefile_block)
41+
m.job('mkdir -p %s' % link_location)
4242

43-
m.job('@ln -s -f ' + link_target + ' $(notdir $@)', makefile_block)
44-
m.job('@mv $(notdir $@) ' + link_location, makefile_block)
43+
m.job('@ln -s -f %s $(notdir $@)' % link_target, makefile_block)
44+
m.job('@mv $(notdir $@) %s' % link_location, makefile_block)
4545

46-
m.msg('[symlink]: created a link at: $@', makefile_block)
46+
m.msg('[symlink]: created a link at: %s' % make_target, makefile_block)
4747
m.newline(block=makefile_block)
4848

4949
def main():

0 commit comments

Comments
 (0)