Updated the makefile
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
25
Makefile
25
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)
|
||||
|
||||
Reference in New Issue
Block a user