diff options
Diffstat (limited to 'gen_makefile.py')
-rwxr-xr-x | gen_makefile.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gen_makefile.py b/gen_makefile.py index 2f4e3f8..6585f3b 100755 --- a/gen_makefile.py +++ b/gen_makefile.py @@ -34,7 +34,11 @@ class makefile_generator(): print('') def append_rule(self, target, dep='', cmds=[]): - print('%s: %s' % (target, dep)) + print(target + ':', end='') + if dep is not '': + print(' ', end='') + + print(dep) for cmd in cmds: print('\t%s' % (cmd)) |