aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 46d251f..5bc01bf 100644
--- a/Makefile
+++ b/Makefile
@@ -106,7 +106,7 @@ images = $(bitmaps:$(int_dir)/%.bmp=$(data_dir)/%.img)
$(objects): %.o : %.c
$(compiler) $(cflags) -MMD -MF $(@:%.o=%.d) -c $< -o $@
-$(images): $(data_dir)%.img : $(int_dir)%.bmp | bmp_converter
+$(images): $(data_dir)%.img : $(int_dir)%.bmp | bmp_converter $(data_dir)
$(bmpconv_cmd) $< $@
bmp_converter:
@@ -114,6 +114,9 @@ bmp_converter:
assets: $(images)
+$(data_dir):
+ mkdir -p data
+
pack_assets:
$(compiler) -O3 -Wall pack.c -o packer
$(pack_cmd) $(assets)