summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/build/makedep.py
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-02-13 19:54:01 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-02-13 19:54:01 +0100
commitf5e8c864c200c131e2e708643219f446234a4dff (patch)
treebb03eff73279f593daa6801ba5f76aaa53fbb057 /scripts/build/makedep.py
parentfda5edee96106f725b3b1c4824c1e6c72349a7b4 (diff)
fix issue with SOURCES=src/mame/drivers/namcops2.cpp (nw)
Diffstat (limited to 'scripts/build/makedep.py')
-rw-r--r--scripts/build/makedep.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build/makedep.py b/scripts/build/makedep.py
index eba69370621..88035d776af 100644
--- a/scripts/build/makedep.py
+++ b/scripts/build/makedep.py
@@ -204,7 +204,9 @@ def parse_file_for_drivers(root, srcfile):
if len(content)>0:
if content.startswith('COMP') or content.startswith('CONS') or content.startswith('GAME') or content.startswith('SYST') or content.startswith('GAMEL'):
name = content[4:]
- drivers.append(name.rsplit(',', 14)[1])
+ splitname = name.rsplit(',', 14)
+ if len(splitname)>1:
+ drivers.append(splitname[1])
return 0
def parse_lua_file(srcfile):