doc: Move common variables to shared location
This commit is contained in:
committed by
Eduardo Almeida
parent
1be3d90cf7
commit
9947faee9f
@@ -1,23 +1,11 @@
|
||||
# Makefile for Sphinx documentation
|
||||
#
|
||||
EPSTOPDF = epstopdf
|
||||
DIA = dia
|
||||
CONVERT = convert -density 300
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS = -W --keep-going
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
include $(CURDIR)/../sphinx/defines.mk
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
|
||||
|
||||
# Additional variables for figures, not sphinx default:
|
||||
DIA = dia
|
||||
EPSTOPDF = epstopdf
|
||||
FIGURES = source/figures
|
||||
IMAGES_EPS = \
|
||||
|
||||
|
||||
@@ -1,23 +1,11 @@
|
||||
# Makefile for Sphinx documentation
|
||||
#
|
||||
EPSTOPDF = epstopdf
|
||||
DIA = dia
|
||||
CONVERT = convert -density 300
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS = -W --keep-going
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
include $(CURDIR)/../sphinx/defines.mk
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
|
||||
|
||||
# Additional variables for figures, not sphinx default:
|
||||
DIA = dia
|
||||
EPSTOPDF = epstopdf
|
||||
FIGURES = source/figures
|
||||
IMAGES_EPS = \
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
EPSTOPDF = epstopdf
|
||||
DIA = dia
|
||||
CONVERT = convert -density 300
|
||||
include $(CURDIR)/../sphinx/defines.mk
|
||||
|
||||
SRC = ../../src
|
||||
# Temporary source directory, for build
|
||||
@@ -139,15 +137,7 @@ RESCALE = ../../utils/rescale-pdf.sh
|
||||
@$(EPSTOPDF) $< -o=$@ >/dev/null
|
||||
@if test x$($@_width) != x; then $(RESCALE) $($@_width) $@ ; fi
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS = -W --keep-going
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCETEMP)
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
EPSTOPDF = epstopdf
|
||||
DIA = dia
|
||||
CONVERT = convert -density 300
|
||||
include $(CURDIR)/../sphinx/defines.mk
|
||||
|
||||
SRC = ../../src
|
||||
# Temporary source directory, for build
|
||||
@@ -603,15 +601,7 @@ RESCALE = ../../utils/rescale-pdf.sh
|
||||
@$(EPSTOPDF) $< -o=$@ >/dev/null
|
||||
@if test x$($@_width) != x; then $(RESCALE) $($@_width) $@ ; fi
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS = -W --keep-going
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCETEMP)
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
|
||||
|
||||
14
doc/sphinx/defines.mk
Normal file
14
doc/sphinx/defines.mk
Normal file
@@ -0,0 +1,14 @@
|
||||
CONVERT = convert -density 300
|
||||
DIA = dia
|
||||
DOT = dot
|
||||
EPSTOPDF = epstopdf
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS = -W --keep-going
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
@@ -1,23 +1,11 @@
|
||||
# Makefile for Sphinx documentation
|
||||
#
|
||||
EPSTOPDF = epstopdf
|
||||
DIA = dia
|
||||
CONVERT = convert -density 300
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS = -W --keep-going
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
include $(CURDIR)/../sphinx/defines.mk
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
|
||||
|
||||
# Additional variables for figures, not sphinx default:
|
||||
DIA = dia
|
||||
EPSTOPDF = epstopdf
|
||||
FIGURES = source/figures
|
||||
IMAGES_EPS = \
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
EPSTOPDF = epstopdf
|
||||
DIA = dia
|
||||
CONVERT = convert -density 300
|
||||
include $(CURDIR)/../../../doc/sphinx/defines.mk
|
||||
|
||||
SOURCE = source
|
||||
FIGURES = $(SOURCE)/figures
|
||||
@@ -39,15 +37,7 @@ GRAPHS = $(GRAPHS_EPS) $(GRAPHS_PNG) $(GRAPHS_PDF)
|
||||
$(EPSTOPDF) $< -o=$@
|
||||
@if test x$($@_width) != x; then $(RESCALE) $($@_width) $@ ; fi
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS = -W --keep-going
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCE)
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
EPSTOPDF = epstopdf
|
||||
DIA = dia
|
||||
CONVERT = convert -density 300
|
||||
include $(CURDIR)/../../../doc/sphinx/defines.mk
|
||||
|
||||
SOURCE = source
|
||||
FIGURES = $(SOURCE)/figures
|
||||
@@ -39,15 +37,7 @@ GRAPHS = $(GRAPHS_EPS) $(GRAPHS_PNG) $(GRAPHS_PDF)
|
||||
$(EPSTOPDF) $< -o=$@
|
||||
@if test x$($@_width) != x; then $(RESCALE) $($@_width) $@ ; fi
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS = -W --keep-going
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCE)
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
EPSTOPDF = epstopdf
|
||||
DIA = dia
|
||||
SEQDIAG = seqdiag
|
||||
DOT = dot
|
||||
CONVERT = convert -density 250
|
||||
include $(CURDIR)/../../../doc/sphinx/defines.mk
|
||||
|
||||
SEQDIAG = seqdiag
|
||||
|
||||
SOURCE = source
|
||||
FIGURES = $(SOURCE)/figures
|
||||
@@ -221,16 +218,7 @@ RESCALE = ../../../utils/rescale-pdf.sh
|
||||
$(EPSTOPDF) $< -o=$@
|
||||
if test x$($@_width) != x; then $(RESCALE) $($@_width) $@ ; fi
|
||||
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS = -W --keep-going
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCE)
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
EPSTOPDF = epstopdf
|
||||
DIA = dia
|
||||
DOT = dot
|
||||
CONVERT = convert -density 250
|
||||
|
||||
include $(CURDIR)/../../../doc/sphinx/defines.mk
|
||||
|
||||
SOURCE = source
|
||||
FIGURES = $(SOURCE)/figures
|
||||
@@ -39,16 +35,7 @@ RESCALE = ../../../utils/rescale-pdf.sh
|
||||
$(EPSTOPDF) $< -o=$@
|
||||
if test x$($@_width) != x; then $(RESCALE) $($@_width) $@ ; fi
|
||||
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS = -W --keep-going
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCE)
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
EPSTOPDF = epstopdf
|
||||
DIA = dia
|
||||
DOT = dot
|
||||
CONVERT = convert -density 120
|
||||
include $(CURDIR)/../../../doc/sphinx/defines.mk
|
||||
|
||||
SOURCE = source
|
||||
FIGURES = $(SOURCE)/figures
|
||||
@@ -64,16 +61,7 @@ RESCALE = ../../../utils/rescale-pdf.sh
|
||||
$(EPSTOPDF) $< -o=$@
|
||||
if test x$($@_width) != x; then $(RESCALE) $($@_width) $@ ; fi
|
||||
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS = -W --keep-going
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCE)
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
|
||||
|
||||
Reference in New Issue
Block a user