diff options
Diffstat (limited to 'lib/python/qmk/makefile.py')
| -rw-r--r-- | lib/python/qmk/makefile.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/qmk/makefile.py b/lib/python/qmk/makefile.py index c53f12ac75..89494bbc02 100644 --- a/lib/python/qmk/makefile.py +++ b/lib/python/qmk/makefile.py | |||
| @@ -5,6 +5,7 @@ import os | |||
| 5 | import qmk.path | 5 | import qmk.path |
| 6 | from qmk.errors import NoSuchKeyboardError | 6 | from qmk.errors import NoSuchKeyboardError |
| 7 | 7 | ||
| 8 | |||
| 8 | def parse_rules_mk_file(file, rules_mk=None): | 9 | def parse_rules_mk_file(file, rules_mk=None): |
| 9 | """Turn a rules.mk file into a dictionary. | 10 | """Turn a rules.mk file into a dictionary. |
| 10 | 11 | ||
| @@ -45,12 +46,13 @@ def parse_rules_mk_file(file, rules_mk=None): | |||
| 45 | rules_mk[key.strip()] = value.strip() | 46 | rules_mk[key.strip()] = value.strip() |
| 46 | else: | 47 | else: |
| 47 | if ":=" in line: | 48 | if ":=" in line: |
| 48 | line.replace(":","") | 49 | line.replace(":", "") |
| 49 | key, value = line.split('=', 1) | 50 | key, value = line.split('=', 1) |
| 50 | rules_mk[key.strip()] = value.strip() | 51 | rules_mk[key.strip()] = value.strip() |
| 51 | 52 | ||
| 52 | return rules_mk | 53 | return rules_mk |
| 53 | 54 | ||
| 55 | |||
| 54 | def get_rules_mk(keyboard): | 56 | def get_rules_mk(keyboard): |
| 55 | """ Get a rules.mk for a keyboard | 57 | """ Get a rules.mk for a keyboard |
| 56 | 58 | ||
