使用Make管理LaTeX文件
TEX := xetex
MP := mpost
vpath %.mp pic
fig=$(patsubst %.mp, %.eps, $(wildcard figures/*.eps))
texTmp=$(filter-out main.tex, $(wildcard main.*));
all:$(fig)
$TEX main.tex
%.eps:%.mp
$MP $^ -o $@
clean:
-rm -f $(fig)
-rm -f $(texTmp)