1 Star 0 Fork 0

npuchenlin/MyBacherlorThesis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 2.45 KB
一键复制 编辑 原始数据 按行查看 历史
npuchenlin 提交于 2019-04-30 15:33 . CFeaturePoint
MAIN = main
NAME = ustcthesis
CLSFILES = $(NAME).cls
BSTFILES = $(NAME)-numerical.bst $(NAME)-authoryear.bst $(NAME)-bachelor.bst
SHELL = bash
LATEXMK = latexmk -xelatex
VERSION = $(shell cat $(NAME).dtx | egrep -o "\[\d\d\d\d/\d\d\/\d\d v.+\]" \
| egrep -o "v\S+")
TEXMF = $(shell kpsewhich --var-value TEXMFHOME)
.PHONY : main cls doc test save clean all install distclean zip FORCE_MAKE
main : $(MAIN).pdf
all : main doc
cls : $(CLSFILES) $(BSTFILES)
doc : $(NAME).pdf
$(MAIN).pdf : $(MAIN).tex $(CLSFILES) $(BSTFILES) FORCE_MAKE
$(LATEXMK) $<
$(NAME).cls : $(NAME).dtx
xetex $<
$(NAME).pdf : $(NAME).dtx FORCE_MAKE
$(LATEXMK) $<
test:
texlua test/build.lua check
texlua test/build-toc.lua check
texlua test/build-bib.lua check
# texlua test/build-nomencl.lua check
save:
texlua test/build.lua save --quiet titlepage
texlua test/build.lua save --quiet titlepage-master
texlua test/build.lua save --quiet titlepage-secret
texlua test/build.lua save --quiet titlepage-bachelor
texlua test/build.lua save --quiet statement
texlua test/build.lua save --quiet statement-secret
texlua test/build.lua save --quiet package-siunitx
texlua test/build-toc.lua save --quiet main
texlua test/build-toc.lua save --quiet main-english
texlua test/build-toc.lua save --quiet main-bachelor
texlua test/build-toc.lua save --quiet main-bachelor-arabic
texlua test/build-toc.lua save --quiet main-bachelor-english
texlua test/build-toc.lua save --quiet main-lof
texlua test/build-toc.lua save --quiet main-lot
texlua test/build-bib.lua save --quiet bib-super
texlua test/build-bib.lua save --quiet bib-numbers
texlua test/build-bib.lua save --quiet bib-authoryear
texlua test/build-bib.lua save --quiet bib-bachelor
texlua test/build-nomencl.lua save --quiet package-nomencl
clean : FORCE_MAKE
$(LATEXMK) -c $(MAIN).tex
$(LATEXMK) -c $(NAME).dtx
texlua test/build.lua clean
distclean :
$(LATEXMK) -C $(MAIN).tex
$(LATEXMK) -C $(NAME).dtx
texlua test/build.lua clean
install : cls doc
mkdir -p $(TEXMF)/{doc,source,tex}/latex/$(NAME)
mkdir -p $(TEXMF)/bibtex/bst/$(NAME)
cp $(BSTFILES) $(TEXMF)/bibtex/bst/$(NAME)
cp $(NAME).pdf $(TEXMF)/doc/latex/$(NAME)
cp $(NAME).dtx $(TEXMF)/source/latex/$(NAME)
cp $(CLSFILES) $(TEXMF)/tex/latex/$(NAME)
zip : main doc
ln -sf . $(NAME)
zip -r ../$(NAME)-$(VERSION).zip $(NAME)/{README.md,LICENSE,\
$(NAME).dtx,$(NAME).pdf,$(NAME).cls,$(NAME)-*.bst,figures,\
$(MAIN).tex,chapters,bib,$(MAIN).pdf,\
latexmkrc,Makefile}
rm $(NAME)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/npuchenlin/MyBacherlorThesis.git
git@gitee.com:npuchenlin/MyBacherlorThesis.git
npuchenlin
MyBacherlorThesis
MyBacherlorThesis
master

搜索帮助