-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
357 lines (282 loc) · 14.3 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
export LC_CTYPE=C
export PYTHONIOENCODING=utf-8
VERSIONS := kuwagata kabuto
OUTPUT_PREFIX := medarot4_
ORIGINAL_PREFIX := baserom_
PYTHON := python3
# Types
ROM_TYPE := gbc
SYM_TYPE := sym
MAP_TYPE := map
SOURCE_TYPE := asm
INT_TYPE := o
RAW_TSET_SRC_TYPE := png
TSET_SRC_TYPE := 2bpp
COMPRESSED_RAW_TSET_SRC_TYPE = malias.$(RAW_TSET_SRC_TYPE)
COMPRESSED_TSET_SRC_TYPE := malias.$(TSET_SRC_TYPE)
COMPRESSED_TSET_TYPE := malias
TMAP_TYPE := map
TEXT_TYPE := txt
CSV_TYPE = csv
CREDITS_TYPE := bin
DIALOG_TYPE := bin
PTRLIST_TYPE := bin
TABLE_TYPE := tbl
# Directories
## It's important these remain relative
BASE := .
BUILD := $(BASE)/build
GAME := $(BASE)/game
TEXT := $(BASE)/text
GFX := $(BASE)/gfx
SCRIPT := $(BASE)/scripts
SCRIPT_RES := $(SCRIPT)/res
# Game Source Directories
SRC := $(GAME)/src
COMMON := $(SRC)/common
VERSION_SRC := $(SRC)/version
DIALOG_TEXT := $(TEXT)/dialog
TILESET_GFX := $(GFX)/tilesets
TILESET_PREBUILT := $(GFX)/prebuilt/tilesets
TILEMAP_GFX := $(GFX)/tilemaps
TILEMAP_PREBUILT := $(GFX)/prebuilt/tilemaps
ATTRIBMAP_GFX := $(GFX)/attribmaps
ATTRIBMAP_PREBUILT := $(GFX)/prebuilt/attribmaps
PTRLISTS_TEXT := $(TEXT)/ptrlists
# Build Directories
VERSION_OUT := $(BUILD)/version
DIALOG_INT := $(BUILD)/intermediate/dialog
DIALOG_OUT := $(BUILD)/dialog
TILESET_OUT := $(BUILD)/tilesets
TILEMAP_OUT := $(BUILD)/tilemaps
ATTRIBMAP_OUT := $(BUILD)/attribmaps
PTRLISTS_INT := $(BUILD)/intermediate/ptrlists
PTRLISTS_OUT := $(BUILD)/ptrlists
# Patch Specific
VWF_TSET_SRC_TYPE := 1bpp
VWF_TSET_TYPE := vwffont
PATCH_TILESET_GFX := $(TILESET_GFX)/patch
PATCH_TILESET_OUT := $(TILESET_OUT)/patch
# Source Modules (directories in SRC), version directories (kuwagata/kabuto) are implied
# We explicitly separate this with newlines to avoid silly conflicts with tr_EN
MODULES := \
patch\
core \
gfx \
link \
titlemenu \
saveclock \
nameentry \
pausemenu \
text
# Toolchain
CC := rgbasm
CC_ARGS :=
LD := rgblink
LD_ARGS :=
FIX := rgbfix
FIX_ARGS :=
CCGFX := rgbgfx
CCGFX_ARGS :=
# Helper
TOUPPER = $(shell echo '$1' | tr '[:lower:]' '[:upper:]')
FILTER = $(strip $(foreach v,$(2),$(if $(findstring $(1),$(v)),$(v),)))
FILTER_OUT = $(strip $(foreach v,$(2),$(if $(findstring $(1),$(v)),,$(v))))
# Inputs
ORIGINALS := $(foreach VERSION,$(VERSIONS),$(BASE)/$(ORIGINAL_PREFIX)$(VERSION).$(ROM_TYPE))
# Outputs (used by clean)
TARGETS := $(foreach VERSION,$(VERSIONS),$(BASE)/$(OUTPUT_PREFIX)$(VERSION).$(ROM_TYPE))
SYM_OUT := $(foreach VERSION,$(VERSIONS),$(BASE)/$(OUTPUT_PREFIX)$(VERSION).$(SYM_TYPE))
MAP_OUT := $(foreach VERSION,$(VERSIONS),$(BASE)/$(OUTPUT_PREFIX)$(VERSION).$(MAP_TYPE))
# Sources
OBJNAMES := $(foreach MODULE,$(MODULES),$(addprefix $(MODULE)., $(addsuffix .$(INT_TYPE), $(notdir $(basename $(wildcard $(SRC)/$(MODULE)/*.$(SOURCE_TYPE)))))))
COMMON_SRC := $(wildcard $(COMMON)/*.$(SOURCE_TYPE))
DIALOG := $(notdir $(basename $(wildcard $(DIALOG_TEXT)/*.$(CSV_TYPE))))
TILESETS = $(notdir $(basename $(wildcard $(TILESET_GFX)/*.$(RAW_TSET_SRC_TYPE))))
COMPRESSED_TILESETS := $(call FILTER,.$(COMPRESSED_TSET_TYPE),$(TILESETS))
COMPRESSED_TILESETS_COMMON := $(call FILTER_OUT,_,$(COMPRESSED_TILESETS))
COMPRESSED_TILESETS_VERSIONED := $(call FILTER,_,$(COMPRESSED_TILESETS))
UNCOMPRESSED_TILESETS := $(call FILTER_OUT,.$(COMPRESSED_TSET_TYPE),$(TILESETS))
COMPRESSED_TILESETS_GAMEVERSION := $(call FILTER,GAMEVERSION,$(COMPRESSED_TILESETS)) # A bit of a hack for the tilesets with shifted pointers
TILEMAPS := $(notdir $(basename $(wildcard $(TILEMAP_GFX)/*.$(TEXT_TYPE))))
TILEMAPS_COMMON := $(call FILTER_OUT,_,$(TILEMAPS))
TILEMAPS_VERSIONED := $(call FILTER,_,$(TILEMAPS))
ATTRIBMAPS := $(notdir $(basename $(wildcard $(ATTRIBMAP_GFX)/*.$(TEXT_TYPE))))
ATTRIBMAPS_COMMON := $(call FILTER_OUT,_,$(ATTRIBMAPS))
ATTRIBMAPS_VERSIONED := $(call FILTER,_,$(ATTRIBMAPS))
PTRLISTS := $(notdir $(basename $(wildcard $(PTRLISTS_TEXT)/*.$(TEXT_TYPE))))
# Intermediates for common sources (not in version folder)
## We explicitly rely on second expansion to handle version-specific files in the version specific objects
OBJECTS := $(foreach OBJECT,$(OBJNAMES), $(addprefix $(BUILD)/,$(OBJECT)))
COMPRESSED_TILESET_FILES_COMMON := $(foreach FILE,$(COMPRESSED_TILESETS_COMMON),$(TILESET_OUT)/$(basename $(FILE)).$(COMPRESSED_TSET_TYPE))
COMPRESSED_TILESET_FILES_VERSIONED := $(foreach FILE,$(COMPRESSED_TILESETS_VERSIONED),$(TILESET_OUT)/$(basename $(FILE)).$(COMPRESSED_TSET_TYPE))
COMPRESSED_TILESET_FILES_GAMEVERSION := $(foreach FILE,$(COMPRESSED_TILESETS_GAMEVERSION),$(TILESET_OUT)/$(basename $(FILE)).$(COMPRESSED_TSET_TYPE))
UNCOMPRESSED_TILESET_FILES := $(foreach FILE,$(UNCOMPRESSED_TILESETS),$(TILESET_OUT)/$(basename $(FILE)).$(TSET_SRC_TYPE)) # Uncompressed just need to be converted to 2bpp
TILEMAP_FILES_COMMON := $(foreach FILE,$(TILEMAPS_COMMON),$(TILEMAP_OUT)/$(FILE).$(TMAP_TYPE))
TILEMAP_FILES_VERSIONED := $(foreach FILE,$(TILEMAPS_VERSIONED),$(TILEMAP_OUT)/$(FILE).$(TMAP_TYPE))
ATTRIBMAP_FILES_COMMON := $(foreach FILE,$(ATTRIBMAPS_COMMON),$(ATTRIBMAP_OUT)/$(FILE).$(TMAP_TYPE))
ATTRIBMAP_FILES_VERSIONED := $(foreach FILE,$(ATTRIBMAPS_VERSIONED),$(ATTRIBMAP_OUT)/$(FILE).$(TMAP_TYPE))
## Patch Specific
PATCH_TEXT_TILESETS := $(notdir $(basename $(wildcard $(PATCH_TILESET_GFX)/*.$(VWF_TSET_SRC_TYPE).$(RAW_TSET_SRC_TYPE)))) # .1bpp.png -> 1bpp
PATCH_TILESETS := $(filter-out $(PATCH_TEXT_TILESETS), $(notdir $(basename $(wildcard $(PATCH_TILESET_GFX)/*.$(RAW_TSET_SRC_TYPE))))) # .png -> 2bpp
PATCH_TEXT_TILESET_FILES := $(foreach FILE,$(PATCH_TEXT_TILESETS),$(PATCH_TILESET_OUT)/$(FILE))
PATCH_TILESET_FILES := $(foreach FILE,$(PATCH_TILESETS),$(PATCH_TILESET_OUT)/$(FILE).$(COMPRESSED_TSET_TYPE)) # Malias compressed
# Additional dependencies, per module granularity (i.e. story, gfx, core) or per file granularity (e.g. story_text_tables_ADDITIONAL)
core_ADDITIONAL :=
version_text_tables_ADDITIONAL := $(DIALOG_OUT)/text_table_constants_PLACEHOLDER_VERSION.asm
version_tileset_table_ADDITIONAL := $(COMPRESSED_TILESET_FILES_COMMON) $(VERSION_SRC)/tileset_table.asm $(COMPRESSED_TILESET_FILES_GAMEVERSION) $(TILESET_OUT)/PLACEHOLDER_VERSION.stamp
version_tilemap_table_ADDITIONAL := $(TILEMAP_FILES_COMMON) $(VERSION_SRC)/tilemap_table.asm $(TILEMAP_OUT)/PLACEHOLDER_VERSION.stamp
version_attribmap_table_ADDITIONAL := $(ATTRIBMAP_FILES_COMMON) $(VERSION_SRC)/attribmap_table.asm $(ATTRIBMAP_OUT)/PLACEHOLDER_VERSION.stamp
version_ptrlist_data_ADDITIONAL := $(PTRLISTS_OUT)/ptrlist_data_constants_PLACEHOLDER_VERSION.asm
# Patch Specific, including any tilesets we move into the patch tileset
patch_tilesets_ADDITIONAL := $(PATCH_TILESET_FILES) $(PATCH_TEXT_TILESET_FILES)
patch_vwf_ADDITIONAL := $(PATCH_TEXT_TILESET_FILES)
.PHONY: $(VERSIONS) all clean default
default: kabuto
all: $(VERSIONS)
clean:
rm -r $(BUILD) $(TARGETS) $(SYM_OUT) $(MAP_OUT) || exit 0
# Support building specific versions
# Unfortunately make has no real good way to do this dynamically from VERSIONS so we just manually set CURVERSION here to propagate to the rgbasm call
kabuto: CURVERSION:=kabuto
kabuto: CURNAME:=MEDAROT4KBTB4MJ
kuwagata: CURVERSION:=kuwagata
kuwagata: CURNAME:= MEDAROT4KWGB4NJ
$(VERSIONS): %: $(OUTPUT_PREFIX)%.$(ROM_TYPE)
# $| is a hack, we cannot have any other order-only prerequisites
.SECONDEXPANSION:
$(BASE)/$(OUTPUT_PREFIX)%.$(ROM_TYPE): $(OBJECTS) $$(addprefix $(VERSION_OUT)/$$*., $$(addsuffix .$(INT_TYPE), $$(notdir $$(basename $$(wildcard $(SRC)/version/$$*/*.$(SOURCE_TYPE)))))) | $(BASE)/$(ORIGINAL_PREFIX)%.$(ROM_TYPE)
$(LD) $(LD_ARGS) -n $(OUTPUT_PREFIX)$*.$(SYM_TYPE) -m $(OUTPUT_PREFIX)$*.$(MAP_TYPE) -O $| -o $@ $^
$(FIX) $(FIX_ARGS) -v -C -k 9C -l 0x33 -m 0x1B -p 0 -r 2 $@ -t "$(CURNAME)"
### Intermediate files
## Unless specified otherwise, called as 'script.py [output file] [optional resource file] [input file] [optional version suffix]'
# Build objects
.SECONDEXPANSION:
.SECONDARY: # Don't delete intermediate files
$(BUILD)/%.$(INT_TYPE): $(SRC)/$$(firstword $$(subst ., ,$$*))/$$(lastword $$(subst ., ,$$*)).$(SOURCE_TYPE) $(COMMON_SRC) $$(wildcard $(SRC)/$$(firstword $$(subst ., ,$$*))/include/*.$(SOURCE_TYPE)) $$($$(firstword $$(subst ., ,$$*))_ADDITIONAL) $$($$(firstword $$(subst ., ,$$*))_$$(lastword $$(subst ., ,$$*))_ADDITIONAL) $$(subst PLACEHOLDER_VERSION,$$(lastword $$(subst /, ,$$(firstword $$(subst ., ,$$*)))),$$($$(firstword $$(subst /, ,$$*))_$$(lastword $$(subst ., ,$$*))_ADDITIONAL)) | $(BUILD) $(VERSION_OUT)
$(CC) $(CC_ARGS) -DGAMEVERSION=$(CURVERSION) -o $@ $<
# build/intermediate/dialog/*.bin from dialog csv files
.SECONDEXPANSION:
$(DIALOG_INT)/%.$(DIALOG_TYPE): $(DIALOG_TEXT)/$$(word 1, $$(subst _, ,$$*)).$(CSV_TYPE) $(SCRIPT_RES)/ptrs.tbl | $(DIALOG_INT)
$(PYTHON) $(SCRIPT)/dialog2bin.py $@ $^ "Translated" $(subst $(subst .$(CSV_TYPE),,$(<F))_,,$*)
# build/intermediate/ptrlists/*.bin from ptrlists csv files
.SECONDEXPANSION:
$(PTRLISTS_INT)/%.$(PTRLIST_TYPE): $(PTRLISTS_TEXT)/$$(word 1, $$(subst _, ,$$*)).$(TEXT_TYPE) | $(PTRLISTS_INT)
$(PYTHON) $(SCRIPT)/ptrlist2bin.py $@ $< $(subst $(subst .$(TEXT_TYPE),,$(<F))_,,$*)
# build/pointer_constants.asm from scripts/res/ptrs.tbl
$(BUILD)/pointer_constants.asm: $(SCRIPT_RES)/ptrs.tbl | $(BUILD)
awk -F "=0x" '{ print "DEF c"$$1 " EQU " "$$"$$2 > "$@" }' $<
# build/tilesets/*.2bpp from source png
$(TILESET_OUT)/%.$(TSET_SRC_TYPE): $(TILESET_GFX)/%.$(RAW_TSET_SRC_TYPE) | $(TILESET_OUT)
$(CCGFX) $(CCGFX_ARGS) -d 2 -o $@ $<
# build/tilesets/*.malias from built malias.2bpp
$(TILESET_OUT)/%.$(COMPRESSED_TSET_TYPE): $(TILESET_OUT)/%.$(COMPRESSED_TSET_SRC_TYPE) | $(TILESET_OUT)
$(PYTHON) $(SCRIPT)/tileset2malias.py $@ $< $(TILESET_PREBUILT)
# build/tilesets/*_VERSION.malias
.SECONDEXPANSION:
$(TILESET_OUT)/%.stamp: $$(call FILTER,%,$(COMPRESSED_TILESET_FILES_VERSIONED)) | $(TILESET_OUT)
touch $@
# Use the intermediate files to generate the final dialog and ptrlist files
# Make has trouble with multiple files in a single rule, so we use the asm file to indicate these files were generated
# NOTE: dialogbin2asm specifically is different between master and translation branches
.SECONDEXPANSION:
$(DIALOG_OUT)/text_table_constants_%.asm: $(SRC)/version/text_tables.asm $(SRC)/version/%/text_tables.asm $$(foreach FILE,$(DIALOG),$(DIALOG_INT)/$$(FILE)_$$*.$(DIALOG_TYPE)) | $(DIALOG_OUT)
$(PYTHON) $(SCRIPT)/dialogbin2asm.py $@ $(DIALOG_OUT) $* $^
.SECONDEXPANSION:
$(PTRLISTS_OUT)/ptrlist_data_constants_%.asm: $(SRC)/version/ptrlist_data.asm $(SRC)/version/%/ptrlist_data.asm $$(foreach FILE,$(PTRLISTS),$(PTRLISTS_INT)/$$(FILE)_$$*.$(PTRLIST_TYPE)) | $(PTRLISTS_OUT)
$(PYTHON) $(SCRIPT)/ptrlistbin2asm.py $@ $(PTRLISTS_OUT) $* $^
# build/tilemaps/*.map from tilemaps txt
$(TILEMAP_OUT)/%.$(TMAP_TYPE): $(TILEMAP_GFX)/%.$(TEXT_TYPE) | $(TILEMAP_OUT)
$(PYTHON) $(SCRIPT)/txt2map.py $@ $^ $(TILEMAP_PREBUILT)
# build/tilemaps/*_VERSION.map
.SECONDEXPANSION:
$(TILEMAP_OUT)/%.stamp: $$(call FILTER,%,$(TILEMAP_FILES_VERSIONED))
touch $@
# build/attribmaps/*.map from tilemaps txt
$(ATTRIBMAP_OUT)/%.$(TMAP_TYPE): $(ATTRIBMAP_GFX)/%.$(TEXT_TYPE) | $(ATTRIBMAP_OUT)
$(PYTHON) $(SCRIPT)/txt2map.py $@ $^ $(ATTRIBMAP_PREBUILT)
# build/attribmaps/*_VERSION.map
.SECONDEXPANSION:
$(ATTRIBMAP_OUT)/%.stamp: $$(call FILTER,%,$(ATTRIBMAP_FILES_VERSIONED))
touch $@
## Patch Specific
$(PATCH_TILESET_OUT)/%.$(VWF_TSET_TYPE): $(PATCH_TILESET_GFX)/%.$(VWF_TSET_SRC_TYPE) | $(PATCH_TILESET_OUT)
cp $< $@
$(PATCH_TILESET_OUT)/%.$(COMPRESSED_TSET_TYPE): $(PATCH_TILESET_OUT)/%.$(TSET_SRC_TYPE) | $(PATCH_TILESET_OUT)
$(PYTHON) $(SCRIPT)/tileset2malias.py $@ $< $(TILESET_PREBUILT)
$(PATCH_TILESET_OUT)/%.$(VWF_TSET_SRC_TYPE): $(PATCH_TILESET_GFX)/%.$(VWF_TSET_SRC_TYPE).$(RAW_TSET_SRC_TYPE) | $(PATCH_TILESET_OUT)
$(CCGFX) $(CCGFX_ARGS) -d 1 -o $@ $<
$(PATCH_TILESET_OUT)/%.$(TSET_SRC_TYPE): $(PATCH_TILESET_GFX)/%.$(RAW_TSET_SRC_TYPE) | $(PATCH_TILESET_OUT)
$(CCGFX) $(CCGFX_ARGS) -d 2 -o $@ $<
# TRANSLATION_SHEET="~/sheet.xlsx" make dump_xlsx
.PHONY: dump_xlsx_dialog
dump_xlsx: dump_xlsx_dialog
dump_xlsx_dialog: $(DIALOG_TEXT)
$(PYTHON) $(SCRIPT)/xlsx2dialog.py "$(TRANSLATION_SHEET)" "$(DIALOG_TEXT)" $(DIALOG)
# Dump scripts
.PHONY: dump dump_text dump_tilesets dump_tilemaps dump_attribmaps dump_ptrlists
dump: dump_text dump_tilesets dump_tilemaps dump_attribmaps dump_ptrlists
dump_text: | $(DIALOG_TEXT) $(SCRIPT_RES)
rm $(DIALOG_TEXT)/*.$(CSV_TYPE) || echo ""
$(PYTHON) $(SCRIPT)/dump_text.py "$(SCRIPT_RES)" "$(VERSION_SRC)" "$(DIALOG_TEXT)" "$(DIALOG_OUT)"
dump_tilesets: | $(TILESET_GFX) $(TILESET_PREBUILT) $(SCRIPT_RES)
rm $(TILESET_PREBUILT)/*.$(COMPRESSED_TSET_TYPE) || echo ""
rm $(TILESET_GFX)/*.$(RAW_TSET_SRC_TYPE) || echo ""
$(PYTHON) $(SCRIPT)/dump_tilesets.py "$(TILESET_GFX)" "$(TILESET_PREBUILT)" "$(TILESET_OUT)" "$(SCRIPT_RES)" "$(VERSION_SRC)"
dump_tilemaps: | $(TILEMAP_GFX) $(TILEMAP_PREBUILT) $(SCRIPT_RES)
rm $(TILEMAP_PREBUILT)/*.$(TMAP_TYPE) || echo ""
rm $(TILEMAP_GFX)/*.$(TEXT_TYPE) || echo ""
$(PYTHON) $(SCRIPT)/dump_maps.py tilemap "$(TILEMAP_GFX)" "$(TILEMAP_PREBUILT)" "$(TILEMAP_OUT)" "$(SCRIPT_RES)" "$(VERSION_SRC)" 877 87f 8
dump_attribmaps: | $(ATTRIBMAP_GFX) $(ATTRIBMAP_PREBUILT) $(SCRIPT_RES)
rm $(ATTRIBMAP_PREBUILT)/*.$(TMAP_TYPE) || echo ""
rm $(ATTRIBMAP_GFX)/*.$(TEXT_TYPE) || echo ""
$(PYTHON) $(SCRIPT)/dump_maps.py attribmap "$(ATTRIBMAP_GFX)" "$(ATTRIBMAP_PREBUILT)" "$(ATTRIBMAP_OUT)" "$(SCRIPT_RES)" "$(VERSION_SRC)" a02 a0b 9
dump_ptrlists: | $(PTRLISTS_TEXT)
rm $(PTRLISTS_TEXT)/*.$(TEXT_TYPE) || echo ""
$(PYTHON) $(SCRIPT)/dump_ptrlists.py "$(VERSION_SRC)" "$(PTRLISTS_TEXT)" "$(PTRLISTS_OUT)"
# Tests
.PHONY: test_tilemaps test_attribmaps
test_tilemaps:
$(PYTHON) $(SCRIPT)/test_maps.py "$(TILEMAP_PREBUILT)"
test_attribmaps:
$(PYTHON) $(SCRIPT)/test_maps.py "$(ATTRIBMAP_PREBUILT)"
#Make directories if necessary
# Patch Specific
$(PATCH_TILESET_OUT):
mkdir -p $(PATCH_TILESET_OUT)
$(BUILD):
mkdir -p $(BUILD)
$(SCRIPT_RES):
mkdir -p $(SCRIPT_RES)
$(VERSION_OUT):
mkdir -p $(VERSION_OUT)
$(DIALOG_TEXT):
mkdir -p $(DIALOG_TEXT)
$(DIALOG_INT):
mkdir -p $(DIALOG_INT)
$(DIALOG_OUT):
mkdir -p $(DIALOG_OUT)
$(TILESET_PREBUILT):
mkdir -p $(TILESET_PREBUILT)
$(TILESET_GFX):
mkdir -p $(TILESET_GFX)
$(TILESET_OUT):
mkdir -p $(TILESET_OUT)
$(TILEMAP_PREBUILT):
mkdir -p $(TILEMAP_PREBUILT)
$(TILEMAP_GFX):
mkdir -p $(TILEMAP_GFX)
$(TILEMAP_OUT):
mkdir -p $(TILEMAP_OUT)
$(ATTRIBMAP_PREBUILT):
mkdir -p $(ATTRIBMAP_PREBUILT)
$(ATTRIBMAP_GFX):
mkdir -p $(ATTRIBMAP_GFX)
$(ATTRIBMAP_OUT):
mkdir -p $(ATTRIBMAP_OUT)
$(PTRLISTS_TEXT):
mkdir -p $(PTRLISTS_TEXT)
$(PTRLISTS_INT):
mkdir -p $(PTRLISTS_INT)
$(PTRLISTS_OUT):
mkdir -p $(PTRLISTS_OUT)