aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-03 07:35:34 +1000
committerquou <quou@disroot.org>2023-05-03 07:35:34 +1000
commitc4ee81da673208fe7b3e3638692fd466acf61c3f (patch)
treed66a3511b327f1e35b9bca91c0358b5fc3c49d2f /Makefile
parent199a5e6e9ddb13af0bb557b6ebbb2c4b8f4ce873 (diff)
Fix the makefile.
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)