forked from cooplab/popgen-notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 668 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (21 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
chapter_files := $(wildcard chapter*.tex)
html_files := $(patsubst %.tex,html/%.html,$(chapter_files))
all: popgen_notes.pdf #site
%.png : %.eps
convert -density 300 $< -flatten $@
PHONY: clean all site
clean:
rm -f popgen_notes.pdf
rm -f html/chapter-*html
latexmk -C
site: html/index.html figures
cp -r figures/*png html/figures
pandoc -s --mathjax --toc --css css/style.css --to html5+smart --from latex popgen_notes.tex > html/index.html
browse: site
open html/index.html
popgen_notes.pdf: popgen_notes.tex
latexmk -latex=xelatex -output-format=pdf $<
xelatex $<
deploy: html/
# using https://github.com/X1011/git-directory-deploy
./deploy.sh