From 357c1fd13ff3e39b002af8a92a6829f034146aeb Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 6 Aug 2025 13:06:10 +0200 Subject: Cleanup --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c5daf0f..74aee61 100644 --- a/Makefile +++ b/Makefile @@ -4,14 +4,18 @@ LUA := lua-5.4.8 CFLAGS := -std=c99 -v -g -I./vendor/$(RAYLIB)/include -I./vendor/$(LUA)/src LDFLAGS := -L./vendor/$(RAYLIB)/lib -lraylib -L./vendor/$(LUA)/src -llua -lm STDLIB_FILES := $(wildcard stdlib/*.lua) +FONT_FILES := $(wildcard fonts/*.ttf) PROG := bidi PROG_C := main.c -all: lua hexdump $(STDLIB_FILES:.lua=.h) $(PROG) +all: lua hexdump $(FONT_FILES:.ttf=.h) $(STDLIB_FILES:.lua=.h) $(PROG) %.h: %.lua ./hexdump $< $(@:stdlib/%.h=%) > $@ +%.h: %.ttf + ./hexdump $< $(@:fonts/%.h=%) > $@ + $(PROG): $(PROG_C) $(CC) $(CFLAGS) $(PROG_C) -o $(PROG) $(LDFLAGS) -- cgit v1.2.3