summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/thuthesis/Makefile
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-02 22:31:15 +0000
committerKarl Berry <karl@freefriends.org>2019-05-02 22:31:15 +0000
commit02ea354c212af61a061260449c3e39e8adffc4b0 (patch)
treea34aacff859f1d1c74755760bc9d0a6bfcbf7adb /Master/texmf-dist/doc/latex/thuthesis/Makefile
parentee512f09c6a78085849822e5e63272a51593e41c (diff)
thuthesis (27apr19)
git-svn-id: svn://tug.org/texlive/trunk@50932 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/thuthesis/Makefile')
-rw-r--r--Master/texmf-dist/doc/latex/thuthesis/Makefile111
1 files changed, 0 insertions, 111 deletions
diff --git a/Master/texmf-dist/doc/latex/thuthesis/Makefile b/Master/texmf-dist/doc/latex/thuthesis/Makefile
deleted file mode 100644
index 65094209ca7..00000000000
--- a/Master/texmf-dist/doc/latex/thuthesis/Makefile
+++ /dev/null
@@ -1,111 +0,0 @@
-# Makefile for ThuThesis
-
-# Compiling method: latexmk/xelatex/pdflatex
-METHOD = latexmk
-# Set opts for latexmk if you use it
-LATEXMKOPTS = -xelatex -file-line-error -halt-on-error -interaction=nonstopmode
-# Basename of thesis
-THESISMAIN = main
-# Basename of shuji
-SHUJIMAIN = shuji
-
-PACKAGE=thuthesis
-SOURCES=$(PACKAGE).ins $(PACKAGE).dtx
-THESISCONTENTS=$(THESISMAIN).tex data/*.tex $(FIGURES)
-# NOTE: update this to reflect your local file types.
-FIGURES=$(wildcard figures/*.eps figures/*.pdf)
-BIBFILE=ref/*.bib
-BSTFILE=*.bst
-SHUJICONTENTS=$(SHUJIMAIN).tex
-CLSFILES=dtx-style.sty $(PACKAGE).cls $(PACKAGE).cfg
-
-# make deletion work on Windows
-ifdef SystemRoot
- RM = del /Q
- OPEN = start
-else
- RM = rm -f
- OPEN = open
-endif
-
-.PHONY: all clean distclean dist thesis viewthesis shuji viewshuji doc viewdoc cls check FORCE_MAKE
-
-all: doc thesis shuji
-
-cls: $(CLSFILES)
-
-$(CLSFILES): $(SOURCES)
- latex $(PACKAGE).ins
-
-viewdoc: doc
- $(OPEN) $(PACKAGE).pdf
-
-doc: $(PACKAGE).pdf
-
-viewthesis: thesis
- $(OPEN) $(THESISMAIN).pdf
-
-thesis: $(THESISMAIN).pdf
-
-viewshuji: shuji
- $(OPEN) $(SHUJIMAIN).pdf
-
-shuji: $(SHUJIMAIN).pdf
-
-ifeq ($(METHOD),latexmk)
-
-$(PACKAGE).pdf: $(CLSFILES) $(THESISMAIN).tex FORCE_MAKE
- $(METHOD) $(LATEXMKOPTS) $(PACKAGE).dtx
-
-$(THESISMAIN).pdf: $(CLSFILES) $(BSTFILE) FORCE_MAKE
- $(METHOD) $(LATEXMKOPTS) $(THESISMAIN)
-
-$(SHUJIMAIN).pdf: $(CLSFILES) FORCE_MAKE
- $(METHOD) $(LATEXMKOPTS) $(SHUJIMAIN)
-
-else ifneq (,$(filter $(METHOD),xelatex pdflatex))
-
-$(PACKAGE).pdf: $(CLSFILES) $(THESISMAIN).tex
- $(METHOD) $(PACKAGE).dtx
- makeindex -s gind.ist -o $(PACKAGE).ind $(PACKAGE).idx
- makeindex -s gglo.ist -o $(PACKAGE).gls $(PACKAGE).glo
- $(METHOD) $(PACKAGE).dtx
- $(METHOD) $(PACKAGE).dtx
-
-$(THESISMAIN).pdf: $(CLSFILES) $(THESISCONTENTS) $(THESISMAIN).bbl
- $(METHOD) $(THESISMAIN)
- $(METHOD) $(THESISMAIN)
-
-$(THESISMAIN).bbl: $(BIBFILE) $(BSTFILE)
- $(METHOD) $(THESISMAIN)
- -bibtex $(THESISMAIN)
- $(RM) $(THESISMAIN).pdf
-
-$(SHUJIMAIN).pdf: $(CLSFILES) $(SHUJICONTENTS)
- $(METHOD) $(SHUJIMAIN)
-
-else
-$(error Unknown METHOD: $(METHOD))
-
-endif
-
-clean:
- latexmk -c $(PACKAGE).dtx $(THESISMAIN) $(SHUJIMAIN)
- -@$(RM) *~
-
-cleanall: clean
- -@$(RM) $(PACKAGE).pdf $(THESISMAIN).pdf $(SHUJIMAIN).pdf
-
-distclean: cleanall
- -@$(RM) $(CLSFILES)
- -@$(RM) -r dist
-
-check: FORCE_MAKE
- @ag 'Tsinghua University Thesis Template|\\def\\version|"version":' thuthesis.dtx package.json
-
-dist: all
- @if [ -z "$(version)" ]; then \
- echo "Usage: make dist version=[x.y.z | ctan]"; \
- else \
- npm run build -- --version=$(version); \
- fi