diff --git a/LaTeX/thesis.tex b/LaTeX/thesis.tex index 09034b5..9f7c0c3 100644 --- a/LaTeX/thesis.tex +++ b/LaTeX/thesis.tex @@ -17,15 +17,15 @@ \newpage - This will be the copyright page + This will be the copyright page. \newpage - This will be the signature page + This will be the signature page. \newpage - This will be the Acknowledgments + This will be the Acknowledgments. \newpage diff --git a/Makefile b/Makefile index b5a2921..85c2158 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ OPTIONS = markdown+yaml_metadata_block+smart -NOTES_DIR = prelim_notes -PDF_DIR = pdf -NOTES = $(wildcard $(NOTES_DIR)/*.md) -PDFS = $(patsubst %.md,%.pdf,$(subst $(NOTES_DIR),$(PDF_DIR),$(NOTES))) +NOTES = $(wildcard prelim_notes/*.md) +NOTES_PDFS = $(patsubst %.md,%.pdf,$(NOTES)) -all: $(PDFS) +THESIS = LaTeX/thesis.tex +THESIS_PDF = thesis.pdf -$(PDF_DIR)/%.pdf: $(NOTES_DIR)/%.md pdf_dir +all: $(THESIS_PDF) $(NOTES_PDFS) + +$(NOTES_PDFS): $(NOTES) pandoc \ --variable mainfont="Roboto" \ --variable monofont="Fira Code" \ @@ -17,12 +18,12 @@ $(PDF_DIR)/%.pdf: $(NOTES_DIR)/%.md pdf_dir -f markdown $< \ -o $@ -pdf_dir: - mkdir -p $(PDF_DIR) +$(THESIS_PDF): $(THESIS) + xelatex $< + rm thesis.aux thesis.log thesis.toc .PHONY: clean -clean: clean_pdf - -clean_pdf: - rm -rf $(PDF_DIR) +clean: + rm -rf $(THESIS_PDF) + rm -rf $(NOTES_PDFS)