Debian Codegraph @

docs/Makefile

raw symbols SCIP
1 #!/usr/bin/make
2 # Copyright (C) 2012-2025 Luca Falavigna
3 #
4 # Author: Luca Falavigna <[email protected]>
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option), any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
19
20 SPHINXOPTS =
21 SPHINXBUILD = sphinx-build
22 PAPER =
23 BUILDDIR = _build
24
25 PAPEROPT_a4 = -D latex_paper_size=a4
26 PAPEROPT_letter = -D latex_paper_size=letter
27 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
28 I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
29
30 .PHONY: help clean latex latexpdf
31
32 help:
33 @echo "Please use \`make <target>' where <target> is one of"
34 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
35 @echo " latexpdf to make LaTeX files and run them through pdflatex"
36
37 clean:
38 -rm -rf $(BUILDDIR)
39
40 latex:
41 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
42 @echo
43 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
44 @echo "Run \`make' in that directory to run these through (pdf)latex" \
45 "(use \`make latexpdf' here to do that automatically)."
46
47 latexpdf:
48 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
49 @echo "Running LaTeX files through pdflatex..."
50 $(MAKE) -C $(BUILDDIR)/latex all-pdf
51 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."