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 $< $@