Revert "Do not treat extras.tex as a content file"

This reverts commit bed3d909a3.
This commit is contained in:
Filip Gralinski 2022-01-22 12:59:51 +01:00
parent bed3d909a3
commit dc56dd3bcd

View File

@ -7,7 +7,7 @@ HAS_APPENDIX={{cookiecutter.with_appendix}}
LATEX_TEMPLATE={{cookiecutter.latex_template}} LATEX_TEMPLATE={{cookiecutter.latex_template}}
WITH_ARXIV_PACKAGE={{cookiecutter.with_arxiv_package}} WITH_ARXIV_PACKAGE={{cookiecutter.with_arxiv_package}}
CONTENT_TEX_SOURCES=$(filter-out $(PAPER_ID).tex config.tex metadata.tex preamble.tex the-appendix.tex, $(shell ls **/*.tex)) CONTENT_TEX_SOURCES=$(filter-out $(PAPER_ID).tex config.tex extras.tex metadata.tex preamble.tex the-appendix.tex, $(shell ls **/*.tex))
CURRENT_DIR=$(shell pwd) CURRENT_DIR=$(shell pwd)
AUTOZOIL_DIR?=/opt/autozoil AUTOZOIL_DIR?=/opt/autozoil
@ -54,7 +54,7 @@ logbeeminder: helpers/logbeeminder.py stats.txt
python3 $< python3 $<
{% endif %} {% endif %}
$(PAPER_ID).pdf: $(PAPER_ID).tex preamble.tex metadata.tex extras.tex $(CONTENT_TEX_SOURCES) bibliography.bib $(SCOREFILES) $(EXTRA_PDFS) $(PAPER_ID).pdf: $(PAPER_ID).tex preamble.tex metadata.tex $(CONTENT_TEX_SOURCES) bibliography.bib $(SCOREFILES) $(EXTRA_PDFS)
pdflatex $< pdflatex $<
bibtex $(PAPER_ID) bibtex $(PAPER_ID)
pdflatex $< pdflatex $<
@ -100,7 +100,7 @@ ifeq ($(WITH_ARXIV_PACKAGE),yes)
arxiv-$(PAPER_ID).pdf: arxiv-$(PAPER_ID).tar.gz helpers/generate-pdf-from-arxiv-package.sh arxiv-$(PAPER_ID).pdf: arxiv-$(PAPER_ID).tar.gz helpers/generate-pdf-from-arxiv-package.sh
bash -xe helpers/generate-pdf-from-arxiv-package.sh $< $@ bash -xe helpers/generate-pdf-from-arxiv-package.sh $< $@
arxiv-$(PAPER_ID).tar.gz: $(PAPER_ID).tex preamble.tex metadata.tex extras.tex $(CONTENT_TEX_SOURCES) bibliography.bib $(SCOREFILES) helpers/prepare-arxiv-package.sh helpers/flatten-structure.pl arxiv-$(PAPER_ID).tar.gz: $(PAPER_ID).tex preamble.tex metadata.tex $(CONTENT_TEX_SOURCES) bibliography.bib $(SCOREFILES) helpers/prepare-arxiv-package.sh helpers/flatten-structure.pl
bash -xe helpers/prepare-arxiv-package.sh $(LATEX_TEMPLATE) $@ bash -xe helpers/prepare-arxiv-package.sh $(LATEX_TEMPLATE) $@
endif endif