@@ -31,20 +31,20 @@ def search_directories(*patterns):
3131
3232 if not header_name in depends_on :
3333 depends_on [header_name ] = set ()
34- if not header_name .startswith ("gba/" ) \
35- and header_name != "global.h" \
36- and header_name != "functions.h" :
37- depends_on [header_name ].add ("global.h" )
38-
39- if header_name .startswith ("gba/" ) \
40- and not header_name .endswith ("types.h" ) \
41- and not header_name .endswith ("defines.h" ):
42- depends_on [header_name ].add ("gba/types.h" )
34+
35+ if not header_name .startswith ("gba/" ):
36+ if header_name != "global.h" \
37+ and header_name != "config.h" \
38+ and header_name != "functions.h" :
39+ depends_on [header_name ].add ("global.h" )
4340
44- if header_name .startswith ("gba/" ) \
45- and not header_name .endswith ("multiboot.h" ) \
46- and not header_name .endswith ("types.h" ):
47- depends_on [header_name ].add ("gba/multiboot.h" )
41+ else : # header_name.startswith("gba/")
42+ if not header_name .endswith ("types.h" ) \
43+ and not header_name .endswith ("defines.h" ):
44+ depends_on [header_name ].add ("gba/types.h" )
45+ elif not header_name .endswith ("multiboot.h" ) \
46+ and not header_name .endswith ("types.h" ):
47+ depends_on [header_name ].add ("gba/multiboot.h" )
4848
4949 data [header_name ] = ""
5050 for line in header .readlines ():
0 commit comments