开题报告定稿
This commit is contained in:
56
Makefile
Normal file
56
Makefile
Normal file
@ -0,0 +1,56 @@
|
||||
# Makefile for hithesis report
|
||||
# Compiling method: latexmk/xelatex
|
||||
METHOD = xelatex
|
||||
# Set opts for latexmk if you use it
|
||||
LATEXMKOPTS = -xelatex
|
||||
# Basename of thesis
|
||||
REPORTMAIN = report
|
||||
|
||||
PACKAGE=hithesis
|
||||
|
||||
REPORTCONTENTS=$(REPORTMAIN).tex front/*.tex body/*.tex $(FIGURES)
|
||||
# NOTE: update this to reflect your local file types.
|
||||
FIGURES=$(wildcard figures/*.eps figures/*.pdf)
|
||||
BIBFILE=*.bib
|
||||
CLSFILES=$(PACKAGE)art.cls $(PACKAGE)art.cfg *.bst
|
||||
|
||||
# make deletion work on Windows
|
||||
ifdef SystemRoot
|
||||
RM = del /Q
|
||||
OPEN = start
|
||||
else
|
||||
RM = rm -f
|
||||
OPEN = open
|
||||
endif
|
||||
|
||||
.PHONY: clean report viewreport
|
||||
|
||||
viewthesis: report
|
||||
$(OPEN) $(REPORTMAIN).pdf
|
||||
|
||||
report: $(REPORTMAIN).pdf
|
||||
|
||||
ifeq ($(METHOD),latexmk)
|
||||
|
||||
$(REPORTMAIN).pdf: $(CLSFILES)
|
||||
$(METHOD) $(LATEXMKOPTS) $(REPORTMAIN)
|
||||
|
||||
else ifeq ($(METHOD),xelatex)
|
||||
|
||||
$(REPORTMAIN).pdf: $(CLSFILES) $(REPORTCONTENTS) $(REPORTMAIN).bbl
|
||||
$(METHOD) $(REPORTMAIN)
|
||||
$(METHOD) $(REPORTMAIN)
|
||||
|
||||
$(REPORTMAIN).bbl: $(BIBFILE)
|
||||
$(METHOD) $(REPORTMAIN)
|
||||
-bibtex $(REPORTMAIN)
|
||||
$(RM) $(REPORTMAIN).pdf
|
||||
|
||||
else
|
||||
$(error Unknown METHOD: $(METHOD))
|
||||
|
||||
endif
|
||||
|
||||
clean:
|
||||
latexmk -c $(REPORTMAIN)
|
||||
-@$(RM) *~ *.idx *.ind *.ilg *.thm *.toe *.bbl
|
Reference in New Issue
Block a user