Skip to content

Commit

Permalink
Merge branch 'master' of github.com:con/opfvta-replication-2023
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Oct 5, 2023
2 parents a1d87b6 + 241b821 commit 4aadfef
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions article/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ PODMAN_ARGS = --rm -v "$()../":/data:Z --user="$(id -u):$(id -g)" "$(LATEX_IMAG

SHELL = /bin/bash

# A build of an article.
SHOWCASE_VERSION = 20230908122618
SHOWCASE_PAPERDIFF_PDF = data/paperdiff_singularity_$(SHOWCASE_VERSION).pdf

COMMON := $(wildcard common/*)
TEX := $(wildcard *.tex) metadata.tex
Expand All @@ -31,24 +34,24 @@ all: article
metadata.tex: metadata.yaml
./yaml-to-latex.py -i $< -o $@


#
# FIGURES GENERATION RULES
# -----------------------------------------------------------------------------
# The diff version name is is a placeholder dependency, the targets depend on multiple or variable output files, all of which get generated by `prepare/paperdiff.pdf`
data/paperdiff_singularity_20230908122618.pdf:
$(SHOWCASE_PAPERDIFF_PDF):
datalad get ../outputs/*/*.pdf
prepare/paperdiff.sh

data/paperdiff.csv: data/paperdiff_singularity_20230908122618.pdf
data/paperdiff.csv: $(SHOWCASE_PAPERDIFF_PDF)
cd prepare; python paperdiff_parse.py

figs/diff_date.pdf: data/paperdiff_singularity_20230908122618.pdf
figs/diff_date.pdf: $(SHOWCASE_PAPERDIFF_PDF)
scripts/diff_date.sh

figs/diff_fig.pdf: data/paperdiff_singularity_20230908122618.pdf
figs/diff_fig.pdf: $(SHOWCASE_PAPERDIFF_PDF)
scripts/diff_fig.sh

figs/diff_text.pdf: data/paperdiff_singularity_20230908122618.pdf
figs/diff_text.pdf: $(SHOWCASE_PAPERDIFF_PDF)
scripts/diff_text.sh

figs/diff_pages.pdf: data/paperdiff.csv
Expand All @@ -74,8 +77,7 @@ container-article:
$(MAKE) article

.PHONY: article
article: $(COMMON) $(TEX) $(STYLE) $(DATA) data/paperdiff_singularity_20230908122618.pdf
datalad get ../outputs/*/*.pdf
article: $(COMMON) $(TEX) $(STYLE) $(DATA) $(SHOWCASE_PAPERDIFF_PDF)
latexmk -pdf -pdflatex="xelatex -interaction=nonstopmode" -use-make article.tex

# Target to specifically remove LaTeX traces.
Expand Down

0 comments on commit 4aadfef

Please sign in to comment.