From c4ee81da673208fe7b3e3638692fd466acf61c3f Mon Sep 17 00:00:00 2001 From: quou Date: Wed, 3 May 2023 07:35:34 +1000 Subject: Fix the makefile. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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) -- cgit v1.2.3-54-g00ecf