diff options
Diffstat (limited to 'gen_makefile.py')
-rwxr-xr-x | gen_makefile.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gen_makefile.py b/gen_makefile.py index fb91242..93c8c3c 100755 --- a/gen_makefile.py +++ b/gen_makefile.py @@ -26,8 +26,12 @@ class makefile_generator(): self._binary = 'a.out' self.phony = [] - def append_variable(self, name, value=''): - print('%s%.*s= %s' % (name, 16 - len(name), ' ', value)) + def append_variable(self, name, value=None): + print('%s%.*s=' % (name, 16 - len(name), ' '), end='') + if value is not None: + print(' ' + value) + else: + print('') def append_separator(self): print('') |