Skip to content

Commit

Permalink
Update Makefile, specifying latexmk option.
Browse files Browse the repository at this point in the history
  • Loading branch information
weijianwen committed Jul 23, 2013
1 parent c53446a commit 9d9e6d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .latexmkrc

This file was deleted.

6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# SED tool
SED = gsed
# Option for latexmk
LATEX_OPT = -xelatex -silent -f
# Basename of thesis
THESISMAIN = diss
# Test file
Expand All @@ -17,7 +19,7 @@ all: $(THESISMAIN).pdf
.PHONY : all clean version distclean cleantest release

$(THESISMAIN).pdf : $(THESISMAIN).tex body/*.tex reference/*.bib *.cls *.cfg
-latexmk -silent -f -pdf $(THESISMAIN)
-latexmk $(LATEX_OPT) $(THESISMAIN)

view : $(THESISMAIN).pdf
$(VIEWER) $< &
Expand All @@ -31,7 +33,7 @@ distclean : clean
test : $(TESTFILE).pdf

$(TESTFILE).pdf : $(TESTFILE).tex
latexmk -silent -pdf $(TESTFILE) > /dev/null
latexmk $(LATEX_OPT) $(TESTFILE) > /dev/null
$(VIEWER) $@

cleantest :
Expand Down

0 comments on commit 9d9e6d3

Please sign in to comment.