test for PDFLaTeX and update README
This commit is contained in:
@ -12,6 +12,7 @@ PYTHON = $(shell which python3)
|
|||||||
VIRTUALENV = virtualenv
|
VIRTUALENV = virtualenv
|
||||||
HAS_PYTHON3 = NO
|
HAS_PYTHON3 = NO
|
||||||
HAS_VIRTUALENV = NO
|
HAS_VIRTUALENV = NO
|
||||||
|
HAS_PDFLATEX = NO
|
||||||
|
|
||||||
ifeq ($(shell which python3 >/dev/null 2>&1; echo $$?), 0)
|
ifeq ($(shell which python3 >/dev/null 2>&1; echo $$?), 0)
|
||||||
HAS_PYTHON3 = YES
|
HAS_PYTHON3 = YES
|
||||||
@ -27,6 +28,11 @@ VIRTUALENV = virtualenv
|
|||||||
HAS_VIRTUALENV = YES
|
HAS_VIRTUALENV = YES
|
||||||
endif
|
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())')
|
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
|
.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."
|
@echo "Conversion finished. The MOBI manual file is created."
|
||||||
|
|
||||||
pdf: $(ANCHORCHECK)
|
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; \
|
cd src/Developer; \
|
||||||
pdflatex developer; \
|
pdflatex developer; \
|
||||||
@ -187,6 +194,7 @@ $(VENV):
|
|||||||
@( \
|
@( \
|
||||||
$(VIRTUALENV) -p $(PYTHON) $(VENV); \
|
$(VIRTUALENV) -p $(PYTHON) $(VENV); \
|
||||||
. $(VENV)/bin/activate; \
|
. $(VENV)/bin/activate; \
|
||||||
|
pip install --upgrade pip; \
|
||||||
pip install Sphinx; \
|
pip install Sphinx; \
|
||||||
deactivate;\
|
deactivate;\
|
||||||
)
|
)
|
||||||
|
|||||||
@ -99,6 +99,12 @@ to be installed (e.g. from texlive):
|
|||||||
- hyperref
|
- hyperref
|
||||||
- hypcap
|
- hypcap
|
||||||
- times
|
- times
|
||||||
|
- tabulary
|
||||||
|
- framed
|
||||||
|
- wrapfig
|
||||||
|
- upquote
|
||||||
|
- capt-of
|
||||||
|
- needspace
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
Installing prerequisites for epub build
|
Installing prerequisites for epub build
|
||||||
|
|||||||
@ -46,7 +46,7 @@ make
|
|||||||
|
|
||||||
| Currently available: | Description |
|
| 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 |
|
| centos8.def | CentOS 8.x with EPEL enabled |
|
||||||
| fedora30_mingw.def | Fedora 30 with MinGW cross-compiler toolchain |
|
| fedora30_mingw.def | Fedora 30 with MinGW cross-compiler toolchain |
|
||||||
| ubuntu16.04.def | Ubuntu 16.04LTS with default MPI == OpenMPI |
|
| ubuntu16.04.def | Ubuntu 16.04LTS with default MPI == OpenMPI |
|
||||||
|
|||||||
Reference in New Issue
Block a user