Improve Makefile

This commit is contained in:
Filip Gralinski 2019-12-02 19:50:15 +01:00
parent 67b5dfe58e
commit 7ef22105cb

View File

@ -21,17 +21,17 @@ stats.txt: $(THESIS_ID).pdf helpers/stats.sh
cat $@
$(THESIS_ID).pdf: $(THESIS_ID).tex preamble.tex metadata.tex $(CONTENT_TEX_SOURCES) bibliography.bib $(SCOREFILES)
pdflatex $<
pdflatex -halt-on-error $<
bibtex $(THESIS_ID)
pdflatex $<
pdflatex $<
pdflatex -halt-on-error $<
pdflatex -halt-on-error $<
scores/%.txt:
mkdir -p scores
curl "https://gonito.net/api/txt/score/"$* -o $@
autozoil-log.txt: $(CONTENT_TEX_SOURCES)
cd $(AUTOZOIL_DIR) && set -o pipefail && ./autozoil --locale en_US $(CONTENT_TEX_SOURCES_WITH_DIR) --alt-log-file $(CURRENT_DIR)/$(THESIS_ID).log | tee $(CURRENT_DIR)/$@
cd $(AUTOZOIL_DIR) && set -o pipefail && ./autozoil --locale en_US $(CONTENT_TEX_SOURCES_WITH_DIR) --format xml --alt-log-file $(CURRENT_DIR)/$(THESIS_ID).log | tee $(CURRENT_DIR)/$@
$(THESIS_ID).zip:
$(clean_latex_stuff)