From 340aa47c4652fe2f0ec5b0e4f293cfff407a0e6c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 15 Jul 2024 15:00:27 +0200 Subject: add texture import/export system for light client --- light-client/textures/makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 light-client/textures/makefile (limited to 'light-client/textures/makefile') diff --git a/light-client/textures/makefile b/light-client/textures/makefile new file mode 100644 index 00000000..1dd60ff4 --- /dev/null +++ b/light-client/textures/makefile @@ -0,0 +1,16 @@ + + +ALL_TA = $(patsubst %.png,%.ta,$(shell find -name '*.png')) +ALL_PNG = $(patsubst %.ta,%.png,$(shell find -name '*.ta')) + +.PHONY: tex_export tex_import clean +tex_import: $(ALL_TA) +tex_export: $(ALL_PNG) +clean: + rm $(ALL_PNG) + +%.ta: %.png + ../../target/release/tex_import $< $@ +%.png: %.ta + ../../target/release/tex_export $< $@ + -- cgit v1.2.3-70-g09d2