aboutsummaryrefslogtreecommitdiff
path: root/light-client/textures/makefile
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-15 15:00:27 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-15 15:00:27 +0200
commit340aa47c4652fe2f0ec5b0e4f293cfff407a0e6c (patch)
tree1d0aad02c54a223b092eb74d065dfbc68cba56f6 /light-client/textures/makefile
parentd3101bbfd9adf84ef8f0061383272eeaecf224d3 (diff)
downloadhurrycurry-340aa47c4652fe2f0ec5b0e4f293cfff407a0e6c.tar
hurrycurry-340aa47c4652fe2f0ec5b0e4f293cfff407a0e6c.tar.bz2
hurrycurry-340aa47c4652fe2f0ec5b0e4f293cfff407a0e6c.tar.zst
add texture import/export system for light client
Diffstat (limited to 'light-client/textures/makefile')
-rw-r--r--light-client/textures/makefile16
1 files changed, 16 insertions, 0 deletions
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 $< $@
+