ref: 8e24af1f222990e44ad3f691488409bade59ab27
parent: cf2acc100193f599b4521a961c9bff6a78be8217
author: yenatch <[email protected]>
date: Sat Feb 1 15:36:44 EST 2014
Clean up variable usage in the makefile.
--- a/Makefile
+++ b/Makefile
@@ -27,14 +27,10 @@
ROMS := pokecrystal.gbc
-ALL_DEPENDENCIES :=
# generate a list of dependencies for each object file
$(shell $(foreach obj, $(OBJS), \
$(eval $(obj:.o=)_DEPENDENCIES := $(shell $(PYTHON) $(POKEMONTOOLS)/scan_includes.py $(obj:.o=.asm))) \
))
-$(shell $(foreach obj, $(OBJS), \
- $(eval ALL_DEPENDENCIES += $($(obj:.o=)_DEPENDENCIES)) \
-))
all: $(ROMS)
@@ -52,12 +48,12 @@
%.asm: ;
.asm.tx:
- $(eval TEXTQUEUE := $(TEXTQUEUE) $<)
+ $(eval TEXTQUEUE += $<)
@rm -f $@
$(OBJS): $$*.tx $$(patsubst %.asm, %.tx, $$($$*_DEPENDENCIES))
@$(PYTHON) prequeue.py $(TEXTQUEUE)
- @$(eval TEXTQUEUE :=)
+ $(eval TEXTQUEUE :=)
rgbasm -o $@ $*.tx
pokecrystal.gbc: $(CRYSTAL_OBJS)