Unverified Commit a9dad3d4 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

test for PDFLaTeX and update README

parent 9397e11c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ PYTHON = $(shell which python3)
VIRTUALENV     = virtualenv
HAS_PYTHON3    = NO
HAS_VIRTUALENV = NO
HAS_PDFLATEX   = NO

ifeq ($(shell which python3 >/dev/null 2>&1; echo $$?), 0)
HAS_PYTHON3 = YES
@@ -27,6 +28,11 @@ VIRTUALENV = virtualenv
HAS_VIRTUALENV = YES
endif

ifeq ($(shell which pdflatex >/dev/null 2>&1; echo $$?), 0)
HAS_PDFLATEX = YES
endif


SPHINXEXTRA = -j $(shell $(PYTHON) -c 'import multiprocessing;print(multiprocessing.cpu_count())')

.PHONY: help clean-all clean clean-spelling epub mobi rst html pdf spelling anchor_check style_check
@@ -113,6 +119,7 @@ mobi: epub
	@echo "Conversion finished. The MOBI manual file is created."

pdf: $(ANCHORCHECK)
	@if [ "$(HAS_PDFLATEX)" == "NO" ] ; then echo "PDFLaTeX was not found! Please check README.md for further instructions" 1>&2; exit 1; fi
	@(\
		cd src/Developer; \
		pdflatex developer; \
@@ -187,6 +194,7 @@ $(VENV):
	@( \
		$(VIRTUALENV) -p $(PYTHON) $(VENV); \
		. $(VENV)/bin/activate; \
		pip install --upgrade pip; \
		pip install Sphinx; \
		deactivate;\
	)
+6 −0
Original line number Diff line number Diff line
@@ -99,6 +99,12 @@ to be installed (e.g. from texlive):
- hyperref
- hypcap
- times
- tabulary
- framed
- wrapfig
- upquote
- capt-of
- needspace
----------------

Installing prerequisites for epub build
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ make

| Currently available:           | Description                                    |
| ------------------------------ | ---------------------------------------------- |
| centos7.def                    | CentOS 7.x with EPEL enabled                   |
| centos7.def                    | CentOS 7.x with EPEL enabled, no LaTeX         |
| centos8.def                    | CentOS 8.x with EPEL enabled                   |
| fedora30_mingw.def             | Fedora 30 with MinGW cross-compiler toolchain  |
| ubuntu16.04.def                | Ubuntu 16.04LTS with default MPI == OpenMPI    |