Makefile: condense dependency scanning into one loop

This commit is contained in:
yenatch 2014-01-27 17:24:19 -05:00
parent c49dd99a98
commit b48435bb26

View file

@ -26,8 +26,6 @@ ROMS := pokered.gbc pokeblue.gbc
# generate dependencies for each object # generate dependencies for each object
$(shell $(foreach obj, $(OBJS), \ $(shell $(foreach obj, $(OBJS), \
$(eval $(obj:.o=)_DEPENDENCIES := $(shell $(PYTHON) extras/pokemontools/scan_includes.py $(obj:.o=.asm))) \ $(eval $(obj:.o=)_DEPENDENCIES := $(shell $(PYTHON) extras/pokemontools/scan_includes.py $(obj:.o=.asm))) \
))
$(shell $(foreach obj, $(OBJS), \
$(eval ALL_DEPENDENCIES += $($(obj:.o=)_DEPENDENCIES)) \ $(eval ALL_DEPENDENCIES += $($(obj:.o=)_DEPENDENCIES)) \
)) ))