blob: 39199caa9a120d5eaf74b141ddee6882489f7fa2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
ALL_TA = $(shell find textures/tiles -name '*.ta')
ALL_PNG = $(shell find textures/tiles -name '*.png')
ALL_TA_IMPORT = $(patsubst %.import.png,%.ta,$(shell find textures/tiles -name '*.import.png'))
ALL_PNG_EXPORT = $(patsubst %.ta,%.png,$(ALL_TA))
.PHONY: tex_pack tex_export tex_import clean
tex_pack: textures/atlas.ta
tex_import: $(ALL_TA_IMPORT)
tex_export: $(ALL_PNG_EXPORT)
clean:
rm -f $(ALL_PNG)
rm -f textures/atlas.ta textures/atlas.meta.csv
%.ta: %.import.png
../target/release/tex_import $< $@
%.png: %.ta
../target/release/tex_export $< $@
textures/atlas.ta textures/atlas.meta.csv: $(ALL_TA)
../target/release/tex_pack textures/atlas.ta textures/atlas.meta.csv $^
|