Skip to content

Commit

Permalink
Adds make html that does not build the manual als pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Bernhardt authored and fingolfin committed Aug 22, 2019
1 parent 963a14d commit f5dfccf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,9 @@ manuals: doc
doc: gap$(EXEEXT) doc/make_doc
doc/make_doc

html: gap$(EXEEXT) doc/make_doc
doc/make_doc nopdf

clean-doc:
rm -f doc/*/chap*.html doc/*/chap*.txt doc/*/*.css doc/*/*.js
rm -f doc/*/chooser.html doc/*/manual*.pdf
Expand Down
10 changes: 7 additions & 3 deletions doc/make_doc.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ set -o pipefail

GAP=@abs_top_builddir@/bin/gap.sh
GAPARGS="-b -m 1g -x 80 -q -r --quitonbreak"

if [ "$1" == "nopdf" ]; then
NOPDF=", \"nopdf\""
else
NOPDF=""
fi
echo "--------------------"
echo "Building GAP manuals"
echo "--------------------"
Expand Down Expand Up @@ -41,7 +45,7 @@ for run in [1,2] do
if run = 2 then
# create black&white version of manual (but only on second run)
SetGapDocLaTeXOptions("nocolor", latexOpts);
MakeGAPDocDoc( path, "main.xml", files, book, "../..", "MathJax" );;
MakeGAPDocDoc( path, "main.xml", files, book, "../..", "MathJax" $NOPDF );;
# Rename the generated black&white PDF
f1 := Filename(dir, "manual.pdf");
Expand All @@ -58,7 +62,7 @@ for run in [1,2] do
# create manuals with color
SetGapDocLaTeXOptions("color", latexOpts);
MakeGAPDocDoc( path, "main.xml", files, book, "../..", "MathJax" );;
MakeGAPDocDoc( path, "main.xml", files, book, "../..", "MathJax" $NOPDF);;
od;
od;
EOF

0 comments on commit f5dfccf

Please sign in to comment.