aboutsummaryrefslogtreecommitdiff
path: root/reproduce/src/make/Top-Makefile
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2018-11-18 19:45:46 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2018-11-18 19:49:13 +0000
commit6a9990b5a4d13d7628902b0dc067c74e782922de (patch)
tree58411b1eb165fb18c18fb8386b82076682409915 /reproduce/src/make/Top-Makefile
parentb15818ddc06d499bac1bac5640682d40901e9588 (diff)
Pipeline also installs TeX live and necessary packages
Since the final product of the pipeline is a LaTeX-created PDF file, it was necessary to also have LaTeX within the pipeline. With this commit, TeX Live is also built as part of the configuration and all the necessary packages to build the PDF are also installed and mentioned in the paper along with their versions.
Diffstat (limited to 'reproduce/src/make/Top-Makefile')
-rw-r--r--reproduce/src/make/Top-Makefile25
1 files changed, 14 insertions, 11 deletions
diff --git a/reproduce/src/make/Top-Makefile b/reproduce/src/make/Top-Makefile
index 5d94766..abd0f45 100644
--- a/reproduce/src/make/Top-Makefile
+++ b/reproduce/src/make/Top-Makefile
@@ -92,17 +92,20 @@ tex/pipeline.tex: $(foreach f, initialize \
delete-me \
, $(mtexdir)/$(f).tex)
- # If no PDF is requested, then just exit here.
-ifeq ($(pdf-build-final),)
- @echo
- @echo
- @echo "-----"
- @echo "Everything is OK until this point, but not building PDF."
- @echo "To do so, give a value to the 'pdf-build-final' variable."
- @echo "It is defined in 'reproduce/config/pipeline/pdf-build.mk'."
- @echo
- @exit 1
-endif
+ # If no PDF is requested, or if LaTeX isn't available, don't
+ # continue to building LaTeX.
+ @if ! latex --version &> /dev/null || [ x$(pdf-build-final) = x ]; then
+ echo
+ echo "-----"
+ echo "The processing has COMPLETED SUCCESSFULLY! But we won't be"
+ echo "building the final LaTeX-built PDF."
+ echo
+ echo "To do so, make sure you have LaTeX within the pipeline and"
+ echo "give a value to the 'pdf-build-final' variable. It is defined"
+ echo "in 'reproduce/config/pipeline/pdf-build.mk'."
+ echo
+ exit 1
+ fi
# Merge all the TeX macros that are prepared for building the PDF.
@cat $(mtexdir)/*.tex > $@