blob: 9b3c10971b270f7e03d7cfa16f351070398be888 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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 $^
|