fix: regular xxd does not have -n, thus using some argument manipulation magic

On my main system I use `tinyxxd`, henceforth: "regular"
This commit is contained in:
2025-09-15 11:44:32 +02:00
parent b04ce9998f
commit c32d1551c8

View File

@@ -75,7 +75,7 @@ bin/TEST_$(NAME): $(TOBJ) $(filter-out obj/src/main.o,$(OBJ))
obj/res/%.c: res/% obj/res/%.c: res/%
$(info [XXD] $@) $(info [XXD] $@)
@mkdir -p $(@D) @mkdir -p $(@D)
@xxd -i -n $(patsubst res/%,%,$<) $< $@ @cd res/ && xxd -i $(patsubst res/%,%,$<) $(abspath $@)
obj/res/%.o: obj/res/%.c obj/res/%.o: obj/res/%.c
$(info [CC] $@) $(info [CC] $@)