Cleaned up makefile, started presentation
This commit is contained in:
85
Makefile
85
Makefile
@@ -1,68 +1,39 @@
|
||||
OPTIONS = markdown+yaml_metadata_block+smart
|
||||
|
||||
NOTES = $(wildcard prelim_notes/*.md)
|
||||
NOTES_PDFS = $(patsubst %.md,%.pdf,$(NOTES))
|
||||
|
||||
THESIS = LaTeX/thesis.tex
|
||||
SRC_DIR = LaTeX/
|
||||
THESIS_SRC_NAMES = thesis.tex thesis.bib approach.tex conclusion.tex introduction.tex \
|
||||
results.tex trajectory_design.tex trajectory_optimization.tex
|
||||
THESIS_SRC = $(addprefix $(SRC_DIR)/,$(THESIS_SRC_NAMES))
|
||||
THESIS_PRES_SRC_NAMES = presentation.tex
|
||||
THESIS_PRES_SRC = $(addprefix $(SRC_DIR)/,$(THESIS_PRES_SRC_NAMES))
|
||||
THESIS_PRES = presentation.pdf
|
||||
THESIS_PDF = thesis.pdf
|
||||
BUILD_DIR = temp/
|
||||
|
||||
all: $(THESIS_PDF) $(NOTES_PDFS)
|
||||
all: $(THESIS_PDF) $(THESIS_PRES)
|
||||
|
||||
$(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 $@
|
||||
$(BUILD_DIR):
|
||||
mkdir -p $(BUILD_DIR)
|
||||
|
||||
thesis_pdf/:
|
||||
mkdir $@
|
||||
$(BUILD_DIR)/$(THESIS_PDF): $(BUILD_DIR) $(THESIS_SRC)
|
||||
xelatex --output-directory $(BUILD_DIR) $(SRC_DIR)/thesis
|
||||
bibtex $(BUILD_DIR)/thesis
|
||||
xelatex --output-directory $(BUILD_DIR) $(SRC_DIR)/thesis
|
||||
xelatex --output-directory $(BUILD_DIR) $(SRC_DIR)/thesis
|
||||
|
||||
$(THESIS_PDF): $(THESIS) LaTeX/thesis.bib
|
||||
mkdir -p temp
|
||||
cp -r LaTeX/fig .
|
||||
cp -r LaTeX/flowcharts .
|
||||
cp -r LaTeX/thesis.tex .
|
||||
cp -r LaTeX/macros.tex .
|
||||
cp -r LaTeX/thesis.bib .
|
||||
cp -r LaTeX/thesis.cls .
|
||||
xelatex thesis
|
||||
bibtex thesis
|
||||
xelatex thesis
|
||||
xelatex thesis
|
||||
rm -rf fig
|
||||
rm -rf flowcharts
|
||||
cp thesis.pdf temp/.
|
||||
rm -rf macros.tex
|
||||
rm -rf thesis.*
|
||||
cp temp/thesis.pdf .
|
||||
rm -rf temp
|
||||
$(BUILD_DIR)/$(THESIS_PRES): $(BUILD_DIR) $(THESIS_PRES_SRC)
|
||||
xelatex --output-directory $(BUILD_DIR) $(SRC_DIR)/presentation
|
||||
|
||||
$(THESIS_PDF): $(BUILD_DIR)/$(THESIS_PDF)
|
||||
cp $(BUILD_DIR)/thesis.pdf .
|
||||
|
||||
$(THESIS_PRES): $(BUILD_DIR)/$(THESIS_PRES)
|
||||
cp $(BUILD_DIR)/presentation.pdf .
|
||||
|
||||
.PHONY: clean revise
|
||||
|
||||
clean:
|
||||
rm -rf $(THESIS_PDF)
|
||||
rm -rf $(NOTES_PDFS)
|
||||
rm -rf thesis_pdf
|
||||
rm -rf $(THESIS_PRES)
|
||||
rm -rf $(BUILD_DIR)
|
||||
|
||||
revise: $(THESIS) LaTeX/thesis.bib
|
||||
mkdir -p temp
|
||||
cp -r LaTeX/fig .
|
||||
cp -r LaTeX/flowcharts .
|
||||
cp -r LaTeX/thesis.tex .
|
||||
cp -r LaTeX/macros.tex .
|
||||
cp -r LaTeX/thesis.bib .
|
||||
cp -r LaTeX/thesis.cls .
|
||||
xelatex thesis
|
||||
bibtex thesis
|
||||
xelatex thesis
|
||||
xelatex thesis
|
||||
rm -rf fig
|
||||
rm -rf flowcharts
|
||||
cp thesis.pdf temp/.
|
||||
rm -rf macros.tex
|
||||
rm -rf thesis.*
|
||||
cp temp/thesis.pdf .
|
||||
final: $(THESIS_PDF) $(THESIS_PRES)
|
||||
rm -rf $(BUILD_DIR)
|
||||
|
||||
Reference in New Issue
Block a user