Updated the makefile

This commit is contained in:
Connor
2021-12-13 23:09:22 -07:00
parent a39dea7377
commit 0342c51914
2 changed files with 16 additions and 15 deletions

View File

@@ -17,15 +17,15 @@
\newpage \newpage
This will be the copyright page This will be the copyright page.
\newpage \newpage
This will be the signature page This will be the signature page.
\newpage \newpage
This will be the Acknowledgments This will be the Acknowledgments.
\newpage \newpage

View File

@@ -1,13 +1,14 @@
OPTIONS = markdown+yaml_metadata_block+smart OPTIONS = markdown+yaml_metadata_block+smart
NOTES_DIR = prelim_notes NOTES = $(wildcard prelim_notes/*.md)
PDF_DIR = pdf NOTES_PDFS = $(patsubst %.md,%.pdf,$(NOTES))
NOTES = $(wildcard $(NOTES_DIR)/*.md)
PDFS = $(patsubst %.md,%.pdf,$(subst $(NOTES_DIR),$(PDF_DIR),$(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 \ pandoc \
--variable mainfont="Roboto" \ --variable mainfont="Roboto" \
--variable monofont="Fira Code" \ --variable monofont="Fira Code" \
@@ -17,12 +18,12 @@ $(PDF_DIR)/%.pdf: $(NOTES_DIR)/%.md pdf_dir
-f markdown $< \ -f markdown $< \
-o $@ -o $@
pdf_dir: $(THESIS_PDF): $(THESIS)
mkdir -p $(PDF_DIR) xelatex $<
rm thesis.aux thesis.log thesis.toc
.PHONY: clean .PHONY: clean
clean: clean_pdf clean:
rm -rf $(THESIS_PDF)
clean_pdf: rm -rf $(NOTES_PDFS)
rm -rf $(PDF_DIR)