You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
318 B
23 lines
318 B
6 years ago
|
UNAME_S := $(shell uname -s)
|
||
|
|
||
|
ifeq ($(UNAME_S),Linux)
|
||
|
PDFVIEW = ""
|
||
|
endif
|
||
|
|
||
|
ifeq ($(UNAME_S),Darwin)
|
||
|
PDFVIEW = ; skimview $@
|
||
|
endif
|
||
|
|
||
6 years ago
|
.PHONY: main.pdf all clean
|
||
|
|
||
|
all: main.pdf
|
||
|
|
||
|
FLAGS = -pdf -pdflatex="xelatex" -use-make \
|
||
|
-quiet -synctex=1
|
||
|
|
||
|
main.pdf: main.tex
|
||
6 years ago
|
latexmk $(FLAGS) main.tex $(PDFVIEW)
|
||
6 years ago
|
|
||
|
clean:
|
||
|
latexmk -CA
|