summaryrefslogtreecommitdiff
path: root/data_pokemon.mk
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2021-12-19 22:27:11 +0100
committermid-kid <esteve.varela@gmail.com>2021-12-20 16:29:19 +0100
commit010d641899be44eb7fc5f458d819c332e092d03f (patch)
tree7838ca3c7546e7167e7a39478884598b448b3ccd /data_pokemon.mk
parent99a038284bcbbf3a0f5ee95982f761a71a72850d (diff)
Explicitly declare dependencies for generated files
These are harder to pick up automatically, and will only change when the tools are edited, anyway... Any other methods for solving this issue can always be reconsidered later down the line...
Diffstat (limited to 'data_pokemon.mk')
-rw-r--r--data_pokemon.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/data_pokemon.mk b/data_pokemon.mk
index 9a81bca..c690a9c 100644
--- a/data_pokemon.mk
+++ b/data_pokemon.mk
@@ -3,7 +3,17 @@
POKEMON_DIR = $(DATA_ASM_SUBDIR)/pokemon
POKEMON_SPECIES = $(POKEMON_DIR)/species_data.inc
+# Headers included by tools/dungeonjson/dungeonjson.cpp:generate_species_data_text
+POKEMON_SPECIES_INC = \
+ include/constants/ability.h \
+ include/constants/evolve_type.h \
+ include/constants/friend_area.h \
+ include/constants/item.h \
+ include/constants/species.h \
+ include/constants/type.h \
+ include/constants/walkable_tile.h
+
data_pokemon: $(POKEMON_SPECIES);
-$(POKEMON_SPECIES): $(POKEMON_DIR)/species_data.json
+$(POKEMON_SPECIES): $(POKEMON_DIR)/species_data.json $(POKEMON_SPECIES_INC)
$(DUNGEONJSON) species pmd-red $<