shithub: pokered

Download patch

ref: b48435bb260e87bd27cc954eb5f2473c4f80c8f4
parent: c49dd99a986b58a9a19f6e53c6e132aa5c18c1de
author: yenatch <yenatch@gmail.com>
date: Mon Jan 27 12:24:19 EST 2014

Makefile: condense dependency scanning into one loop

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