aboutsummaryrefslogtreecommitdiff
path: root/reproduce/src/make/Top-Makefile
diff options
context:
space:
mode:
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 > $@