X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=doc%2Ftutorial%2FMakefile.am;h=4971a9b30fbfdb1358e5a60de4ecba0c40e919b9;hp=32455b87f8e2d0abe55a89f88624cc5b47d008f9;hb=6cecf65f570c056be7d99536ca53e8073ebc3559;hpb=956667af1a8aee1a74e4c70c2ff6ad474cced3cd diff --git a/doc/tutorial/Makefile.am b/doc/tutorial/Makefile.am index 32455b87..4971a9b3 100644 --- a/doc/tutorial/Makefile.am +++ b/doc/tutorial/Makefile.am @@ -5,7 +5,7 @@ # some regexpese to tutorial.sgml prior to parsing it, in order to allow for # different graphics output. This seems to be an ugly limitation of docbook... -FIG = classhierarchy.fig rep_naive.fig rep_pair.fig +FIG = classhierarchy.fig rep_naive.fig rep_pair.fig rep_real.fig PNG = $(addsuffix .png, $(basename $(FIG))) EPS = $(addsuffix .eps, $(basename $(FIG))) @@ -32,7 +32,10 @@ JADEARGS_HTML = -t sgml -d /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/do index.html: tutorial.sgml.in $(PNG) @if [ "${JADE}" ]; then \ - sed -e 's/graext/png/g' -e 's/GRAEXT/GIF/g' tutorial.sgml.in > tutorial.sgml; \ + sed -e "s/MAJOR_VERSION/${GINACLIB_MAJOR_VERSION}/" \ + -e "s/MINOR_VERSION/${GINACLIB_MINOR_VERSION}/" \ + -e 's/graext/png/g' \ + -e 's/GRAEXT/GIF/g' tutorial.sgml.in > tutorial.sgml; \ echo "Running ${JADE} ${JADEARGS_HTML} tutorial.sgml..."; \ ${JADE} ${JADEARGS_HTML} tutorial.sgml; \ if [ -f book1.html ]; then mv book1.html index.html; fi; \ @@ -42,7 +45,10 @@ index.html: tutorial.sgml.in $(PNG) tutorial.tex: tutorial.sgml.in $(EPS) @if [ "${JADE}" -a "${LATEX}" ]; then \ - sed -e 's/graext/eps/g' -e 's/GRAEXT/EPS/g' tutorial.sgml.in > tutorial.sgml; \ + sed -e "s/MAJOR_VERSION/${GINACLIB_MAJOR_VERSION}/" \ + -e "s/MINOR_VERSION/${GINACLIB_MINOR_VERSION}/" \ + -e 's/graext/eps/g' \ + -e 's/GRAEXT/EPS/g' tutorial.sgml.in > tutorial.sgml; \ echo "Running ${JADE} ${JADEARGS_TEX} tutorial.sgml..."; \ ${JADE} ${JADEARGS_TEX} tutorial.sgml ; \ else \