| Newsgroups |
gmane.comp.gnu.make.windows |
| Message-ID |
<[email protected]> |
Sirs:
I am learning doxygen on Windows XP. To convert a latex document to pdf,
doxygen generates the following Makefile:
Copy of Makefile generated by doxygen:
all: clean refman.pdf
pdf: refman.pdf
refman.pdf: refman.tex
pdflatex refman.tex
makeindex refman.idx
pdflatex refman.tex
latex_count=5 ; \
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\
do \
echo "Rerunning latex...." ;\
pdflatex refman.tex ;\
latex_count=`expr $$latex_count - 1` ;\
done
clean:
rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out refman.pdf
Case (1)
I used mingw32-make (from mingw32-make-3.81-2.tar.gz).
When making the above Makefile, the program would end with an error. The final few lines
of the console output are:
...
Output written on refman.pdf (110 pages, 791113 bytes).
Transcript written on refman.log.
latex_count=5 ; \
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $latex_count -gt 0 ] ;\
do \
echo "Rerunning latex...." ;\
pdflatex refman.tex ;\
latex_count=`expr $latex_count - 1` ;\
done
'latex_count' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make: *** [refman.pdf] Error 255
Case (2)
Eventually, I figured out that I needed to add 'C:\msys\1.0\bin' to my PATH.
That is, with mingw32-make (from mingw32-make-3.81-2.tar.gz) and C:\msys\1.0\bin in PATH,
the last few lines of the console output are:
...
Output written on refman.pdf (110 pages, 791113 bytes).
Transcript written on refman.log.
latex_count=5 ; \
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $latex_count -gt 0 ] ;\
do \
echo "Rerunning latex...." ;\
pdflatex refman.tex ;\
latex_count=`expr $latex_count - 1` ;\
done
Case (3)
Yesterday, I downloaded and installed mingw32-make-3.81-20080326.tar.gz.
Now when I use this make on the Makefile I get the same error as for case (1) above.
That is, with mingw32-make (from mingw32-make-3.81-20080326.tar.gz) and C:\msys\1.0\bin in PATH,
the last few lines of the console output are:
...
Output written on refman.pdf (110 pages, 791113 bytes).
Transcript written on refman.log.
latex_count=5 ; \
while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $latex_count -gt 0 ] ;\
do \
echo "Rerunning latex...." ;\
pdflatex refman.tex ;\
latex_count=`expr $latex_count - 1` ;\
done
'latex_count' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make-new: *** [refman.pdf] Error 255
In other words, it seems that with the new make, the MSYS binaries are not being located.
(Obviously, I could be wrong about this, but something appears to be amiss.)
Incidentally, I experimented with putting C:\msys\1.0\bin at the start and the end of the PATH,
and it made no difference.
Thanks,
Bob
--
This message was sent on behalf of [email protected] at openSubscriber.com
http://www.opensubscriber.com/messages/[email protected]/topic.html