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