"make html" and "make pdf" don't work?
Hello again, Chris, thanks for the fast response to my previous post. That kind of responsiveness can only lead to one thing: more bug reports and requests! Here's one. According to the tutorial (Section 3.3 Building GiNaC), I can build the documentation with "make" commands such as $ make html $ make pdf Here is what I get when I try this (using ginac version 1.3.4). I am running the "make" commands in the same directory where I just completed the usual "./configure" (with no options) and "make" commands. First I tried "make html": -------------------------------------------------------------------- $ make html make: *** No rule to make target `html'. Stop. -------------------------------------------------------------------- Next, "make pdf": -------------------------------------------------------------------- $ make pdf ... snip (lots of latex stuff) ... Output written on ginac.pdf (118 pages, 753760 bytes). Transcript written on ginac.log. make[2]: Leaving directory `/home/wweckesser/test_ginac_doc/ginac-1.3.4/doc/tutorial' Making pdf in reference make[2]: Entering directory `/home/wweckesser/test_ginac_doc/ginac-1.3.4/doc/reference' warning: target reference.pdf disabled by configuration This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5) entering extended mode ! I can't find file `reference.tex'. <*> reference.tex Please type another input file name: --------------------------------------------------------------------- "make pdf" successfully builds the file ginac.pdf in doc/tutorial, but something goes wrong in doc/reference. Best regards, Warren
Hello! On Thu, Aug 10, 2006 at 11:57:02AM -0400, Warren Weckesser wrote:
Here's one. According to the tutorial (Section 3.3 Building GiNaC), I can build the documentation with "make" commands such as
$ make html $ make pdf
Here is what I get when I try this (using ginac version 1.3.4). I am running the "make" commands in the same directory where I just completed the usual "./configure" (with no options) and "make" commands.
First I tried "make html": -------------------------------------------------------------------- $ make html make: *** No rule to make target `html'. Stop. --------------------------------------------------------------------
Next, "make pdf": -------------------------------------------------------------------- $ make pdf
... snip (lots of latex stuff) ...
Output written on ginac.pdf (118 pages, 753760 bytes). Transcript written on ginac.log. make[2]: Leaving directory `/home/wweckesser/test_ginac_doc/ginac-1.3.4/doc/tutorial' Making pdf in reference make[2]: Entering directory `/home/wweckesser/test_ginac_doc/ginac-1.3.4/doc/reference' warning: target reference.pdf disabled by configuration This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5) entering extended mode ! I can't find file `reference.tex'. <*> reference.tex
Please type another input file name: ---------------------------------------------------------------------
"make pdf" successfully builds the file ginac.pdf in doc/tutorial, but something goes wrong in doc/reference.
To build the reference you need to have the doxygen utility (see http://www.stack.nl/~dimitri/doxygen) installed. If you are running Ubuntu, you can just install the doxygen package with you favourite APT frontend. However, the failure you have noticed _is a bug_. I'll post a patch to fix it *really soon*. Best regards, Alexei -- All science is either physics or stamp collecting.
On Thu, Aug 10, 2006 at 11:57:02AM -0400, Warren Weckesser wrote:
Hello again,
Chris, thanks for the fast response to my previous post. That kind of responsiveness can only lead to one thing: more bug reports and requests!
Here's one. According to the tutorial (Section 3.3 Building GiNaC), I can build the documentation with "make" commands such as
$ make html $ make pdf
Here is what I get when I try this (using ginac version 1.3.4). I am running the "make" commands in the same directory where I just completed the usual "./configure" (with no options) and "make" commands.
First I tried "make html": -------------------------------------------------------------------- $ make html make: *** No rule to make target `html'. Stop. --------------------------------------------------------------------
Next, "make pdf": -------------------------------------------------------------------- $ make pdf
... snip (lots of latex stuff) ...
Output written on ginac.pdf (118 pages, 753760 bytes). Transcript written on ginac.log. make[2]: Leaving directory `/home/wweckesser/test_ginac_doc/ginac-1.3.4/doc/tutorial' Making pdf in reference make[2]: Entering directory `/home/wweckesser/test_ginac_doc/ginac-1.3.4/doc/reference' warning: target reference.pdf disabled by configuration This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5) entering extended mode ! I can't find file `reference.tex'. <*> reference.tex
Please type another input file name: ---------------------------------------------------------------------
Here is a patch to fix this issue. Could anyone give it a try? Index: INSTALL =================================================================== RCS file: /home/cvs/GiNaC/INSTALL,v retrieving revision 1.51.2.3 diff -u -r1.51.2.3 INSTALL --- INSTALL 19 Oct 2005 20:54:49 -0000 1.51.2.3 +++ INSTALL 12 Aug 2006 05:54:17 -0000 @@ -10,6 +10,10 @@ use the same compiler you compiled CLN with because of differing name-mangling schemes. +To build the GiNaC tutorial and reference manual the doxygen utility +(it can be downloaded from http://www.stack.nl/~dimitri/doxygen) and +TeX are necessary. + Known to work with: - Linux on x86, Alpha and Sparc using GCC 3.x and 4.0. Index: configure.ac =================================================================== RCS file: /home/cvs/GiNaC/configure.ac,v retrieving revision 1.21.2.7 diff -u -r1.21.2.7 configure.ac --- configure.ac 31 Jul 2006 12:46:27 -0000 1.21.2.7 +++ configure.ac 12 Aug 2006 05:54:17 -0000 @@ -134,11 +134,14 @@ dnl Documentation needs only be built when extending it, so never mind if it dnl cannot find those helpers: AC_PATH_PROG(DOXYGEN, doxygen, "") +AM_CONDITIONAL(CONFIG_DOXYGEN, [test ! -z "$DOXYGEN"]) AC_PATH_PROG(LATEX, latex, "") AC_PATH_PROG(PDFLATEX, pdflatex, "") AC_PATH_PROG(MAKEINDEX, makeindex, "") AC_PATH_PROG(DVIPS, dvips, "") +AM_CONDITIONAL(CONFIG_TEX, [test ! \( -z "$LATEX" -o -z $"PDFLATEX" -o -z "$MAKEINDEX" -o -z "$DVIPS" \)]) AC_PATH_PROG(FIG2DEV, fig2dev, "") +AM_CONDITIONAL(CONFIG_FIG2DEV, [test ! -z "$FIG2DEV"]) dnl Output makefiles etc. AC_CONFIG_FILES([ Index: doc/reference/Makefile.am =================================================================== RCS file: /home/cvs/GiNaC/doc/reference/Makefile.am,v retrieving revision 1.11 diff -u -r1.11 Makefile.am --- doc/reference/Makefile.am 10 Aug 2004 21:01:28 -0000 1.11 +++ doc/reference/Makefile.am 12 Aug 2006 05:54:17 -0000 @@ -1,10 +1,15 @@ ## Process this file with automake to produce Makefile.in # Targets +if CONFIG_DOXYGEN html: html_files/index.html + +if CONFIG_TEX dvi: reference.dvi ps: reference.ps pdf: reference.pdf +endif + # This section produces HTML'ed and TeX'ed developer's reference from the # sources with a JavaDoc-like tool (in this case doxygen): @@ -12,64 +17,42 @@ @[ -d html_files ] || mkdir html_files >/dev/null 2>&1 html_files/index.html: - @if [ "${DOXYGEN}" ]; then \ - echo "Running ${DOXYGEN} DoxyfileHTML..."; \ - ${DOXYGEN} DoxyfileHTML; \ - else \ - echo "warning: target reference_html disabled by configuration"; \ - fi + @echo "Running ${DOXYGEN} DoxyfileHTML..."; \ + ${DOXYGEN} DoxyfileHTML +if CONFIG_TEX latex:: @[ -d latex ] || mkdir latex >/dev/null 2>&1 latex/reference.tex: - @if [ "${DOXYGEN}" ]; then \ - echo "Running ${DOXYGEN} DoxyfileTEX..."; \ - ${DOXYGEN} DoxyfileTEX; \ - mv latex/refman.tex latex/reference.tex; \ - else \ - echo "warning: target reference.tex disabled by configuration"; \ - fi + @echo "Running ${DOXYGEN} DoxyfileTEX..."; \ + ${DOXYGEN} DoxyfileTEX latex/reference.dvi: latex/reference.tex - @if [ "${LATEX}" -a "${MAKEINDEX}" ]; then \ - (cd latex; \ - ${LATEX} reference.tex && \ - ${MAKEINDEX} reference.idx && \ - ${LATEX} reference.tex); \ - else \ - echo "warning: target reference.dvi disabled by configuration"; \ - fi + @set -e ;\ + cd latex; \ + ${LATEX} reference.tex ; \ + ${MAKEINDEX} reference.idx ; \ + ${LATEX} reference.tex latex/reference.ps: latex/reference.dvi - @if [ "${DVIPS}" ]; then \ - echo "Running ${DVIPS} -o reference.ps reference.dvi..."; \ - (cd latex; ${DVIPS} -o reference.ps reference.dvi); \ - else \ - echo "warning: target reference.ps disabled by configuration"; \ - fi + @echo "Running ${DVIPS} -o reference.ps reference.dvi..."; \ + cd latex; ${DVIPS} -o reference.ps reference.dvi pdflatex:: @[ -d pdflatex ] || mkdir pdflatex >/dev/null 2>&1 pdflatex/reference.tex: - @if [ "${DOXYGEN}" ]; then \ - echo "Running ${DOXYGEN} DoxyfilePDF..."; \ + @echo "Running ${DOXYGEN} DoxyfilePDF..."; \ ${DOXYGEN} DoxyfilePDF; \ - mv pdflatex/refman.tex pdflatex/reference.tex; \ - else \ - echo "warning: target reference.pdf disabled by configuration"; \ - fi + mv pdflatex/refman.tex pdflatex/reference.tex pdflatex/reference.pdf: pdflatex/reference.tex - @if [ "${PDFLATEX}" -a "${MAKEINDEX}" ]; then \ - (cd pdflatex; \ - ${PDFLATEX} reference.tex && \ - ${MAKEINDEX} reference.idx && \ - ${PDFLATEX} reference.tex); \ - else \ - echo "warning: target reference.pdf disabled by configuration"; \ - fi + @set -e ; \ + cd pdflatex; \ + ${PDFLATEX} reference.tex ;\ + ${MAKEINDEX} reference.idx ;\ + ${PDFLATEX} reference.tex reference.dvi: latex latex/reference.dvi cp latex/reference.dvi reference.dvi @@ -79,5 +62,10 @@ reference.pdf: pdflatex pdflatex/reference.pdf cp pdflatex/reference.pdf reference.pdf +endif +## CONFIG_TEX + +endif +## CONFIG_DOXYGEN CLEANFILES = reference.dvi reference.ps reference.pdf html_files/* latex/* pdflatex/* Index: doc/tutorial/Makefile.am =================================================================== RCS file: /home/cvs/GiNaC/doc/tutorial/Makefile.am,v retrieving revision 1.16 diff -u -r1.16 Makefile.am --- doc/tutorial/Makefile.am 10 Aug 2004 21:01:29 -0000 1.16 +++ doc/tutorial/Makefile.am 12 Aug 2006 05:54:17 -0000 @@ -1,45 +1,42 @@ ## Process this file with automake to produce Makefile.in +FIG = classhierarchy.fig repnaive.fig reppair.fig repreal.fig +TXT = $(addsuffix .txt, $(basename $(FIG))) +info_TEXINFOS = AM_MAKEINFOHTMLFLAGS = --no-split +if CONFIG_TEX +if CONFIG_FIG2DEV + # Graphics file conversion -FIG = classhierarchy.fig repnaive.fig reppair.fig repreal.fig PNG = $(addsuffix .png, $(basename $(FIG))) EPS = $(addsuffix .eps, $(basename $(FIG))) PDF = $(addsuffix .pdf, $(basename $(FIG))) -TXT = $(addsuffix .txt, $(basename $(FIG))) SUFFIXES = .fig .png .eps .txt .fig.eps: - @if [ "${FIG2DEV}" ]; then \ echo "Running ${FIG2DEV} -L eps -m 0.9 $< $@..."; \ - ${FIG2DEV} -L eps -m 0.9 $< $@; \ - else \ - echo "warning: fig2dev was not found by configure"; \ - fi + ${FIG2DEV} -L eps -m 0.9 $< $@; .fig.pdf: - @if [ "${FIG2DEV}" ]; then \ echo "Running ${FIG2DEV} -L pdf -m 0.9 $< $@..."; \ - ${FIG2DEV} -L pdf -m 0.9 $< $@; \ - else \ - echo "warning: fig2dev was not found by configure"; \ - fi + ${FIG2DEV} -L pdf -m 0.9 $< $@ .fig.png: - @if [ "${FIG2DEV}" ]; then \ - echo "Running ${FIG2DEV} -L png $< $@..."; \ - ${FIG2DEV} -L png $< $@; \ - else \ - echo "warning: fig2dev was not found by configure"; \ - fi + @echo "Running ${FIG2DEV} -L png $< $@..."; \ + ${FIG2DEV} -L png $< $@ + -info_TEXINFOS = ginac.texi +info_TEXINFOS += ginac.texi ginac.pdf: $(PDF) ginac.dvi: $(EPS) ginac.html: $(PNG) - CLEANFILES = $(EPS) $(PDF) $(PNG) +## CONFIG_FIG2DEV +endif +## CONFIG_TEX +endif + EXTRA_DIST = $(FIG) $(TXT) Best regards, Alexei. -- All science is either physics or stamp collecting.
participants (2)
-
varg@theor.jinr.ru
-
Warren Weckesser