Files
thesis/Makefile
2021-12-16 21:33:05 -07:00

36 lines
703 B
Makefile

OPTIONS = markdown+yaml_metadata_block+smart
NOTES = $(wildcard prelim_notes/*.md)
NOTES_PDFS = $(patsubst %.md,%.pdf,$(NOTES))
THESIS = LaTeX/thesis.tex
THESIS_PDF = thesis.pdf
all: $(THESIS_PDF) $(NOTES_PDFS)
$(NOTES_PDFS): $(NOTES)
pandoc \
--variable mainfont="Roboto" \
--variable monofont="Fira Code" \
--variable fontsize=11pt \
--variable geometry:"top=1in, bottom=1in, left=1in, right=1in" \
--variable geometry:letterpaper \
-f markdown $< \
-o $@
thesis_pdf/:
mkdir $@
$(THESIS_PDF): $(THESIS) thesis_pdf/
xelatex $<
xelatex $<
mv thesis.* thesis_pdf/
cp thesis_pdf/thesis.pdf .
.PHONY: clean
clean:
rm -rf $(THESIS_PDF)
rm -rf $(NOTES_PDFS)
rm -rf thesis_pdf