Browse Source

include constants in main build

SBird1337 6 years ago
parent
commit
68373636f5
1 changed files with 5 additions and 6 deletions
  1. 5
    6
      makefile

+ 5
- 6
makefile View File

140
 	$(shell mkdir -p $(dir $@))
140
 	$(shell mkdir -p $(dir $@))
141
 	$(GRIT) $< -o $@ -ftc -ff $(<D)/$(notdir $(<D)).grit
141
 	$(GRIT) $< -o $@ -ftc -ff $(<D)/$(notdir $(<D)).grit
142
 
142
 
143
-all: $(GEN_H) rom 
143
+src/include/pymap_constants.h: sots-private/map/sots.json.constants sots-private/map/sots.json.config
144
+	pymapconstex.py sots-private/map/sots.json
145
+	$(shell  ./generate_pymap_header.sh)
146
+
147
+all: src/include/pymap_constants.h $(GEN_H) rom 
144
 
148
 
145
 .PHONY: rom
149
 .PHONY: rom
146
 rom: main.asm $(MAIN_OBJ)
150
 rom: main.asm $(MAIN_OBJ)
235
 	@printf "\e[1,32mMaking Cries\e[0m\n"
239
 	@printf "\e[1,32mMaking Cries\e[0m\n"
236
 	$(MAKE) -C $(dir $@) all
240
 	$(MAKE) -C $(dir $@) all
237
 
241
 
238
-.PHONY: constants
239
-constants:
240
-	pymapconstex.py sots-private/map/sots.json
241
-	$(shell  ./generate_pymap_header.sh)
242
-
243
 run: rom
242
 run: rom
244
 	$(VBA) "build/pkmn_sots.gba"
243
 	$(VBA) "build/pkmn_sots.gba"