-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
35 lines (25 loc) · 1.03 KB
/
Makefile
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
31
32
33
34
## Location of Pandoc support files.
PREFIX = /home/rejuvyesh/.pandoc
# ## Markdown extension (e.g. md, markdown, mdown).
# MEXT = md
# ## All markdown files in the working directory
# SRC = $(wildcard *.$(MEXT))
SRC = report.md
PDFS=$(SRC:.md=.pdf)
HTML=$(SRC:.md=.html)
TEX=$(SRC:.md=.tex)
all: $(PDFS) $(HTML) $(TEX)
pdf: clean $(PDFS)
html: clean $(HTML)
tex: clean $(TEX)
%.html: %.md
pandoc -r markdown+simple_tables+table_captions+yaml_metadata_block+tex_math_dollars -w html -S --template=$(PREFIX)/templates/html.template --css=css/healy-paper.css -o $@ $<
%.tex: %.md
pandoc -r markdown+simple_tables+table_captions+yaml_metadata_block+tex_math_dollars -w latex -s -S --latex-engine=pdflatex --template=$(PREFIX)/templates/latex.template -o $@ $<
%.pdf: %.md
pandoc -r markdown+simple_tables+table_captions+yaml_metadata_block+tex_math_dollars -s -S --latex-engine=xelatex --template=$(PREFIX)/templates/rejuvyesh-paper.xelatex -o $@ $<
plot:
matlab -nodisplay -nosplash -r "plotres"
mv *.png img/
clean:
rm -f *.html *.pdf *.tex