>>> One comment: to enable pdf hyperlink, you need to use
>>> "latex" to compile the source twice.
>> book.ps: book.dvi
>>      makeindex book
>>      ${MAKE} $<
>>      ${MAKE} $<
>>      dvips $<

> Hmm, IIUC running make twice is supposed to produce the same
> effect as running it once (on the second run make should note
> that book.dvi is up to date and do nothing.  In fact, since
> book.dvi is a dependency, both make runs above should be
> redundant.  Correct sulition is to duplicate latex command
> or use stamp files if there is need for something more complex.

You should look at my updated branch.
As you see here.

https://github.com/hemmecke/fricas/commit/cd75c4a286b99bf41e1b16954711ad3f216ffc76#diff-f1a515130f7da1ea8582b59d082250a2R690

book.dvi: stamp-pics tmp/ug09.tex tmp/info.tex ${HTEX_FILES_TEX}
        TEXINPUTS=$$TEXINPUTS:${srcdir}:tmp:. ${LATEX} book.tex \
        || (echo "==> Detected problem while running LaTeX."; \
            echo "==> LaTeX must be installed."; \
            echo "==> The following LaTeX packages must be available."; \
            echo "==> amsmath, breqn, tensor, mleftright, epsf, verbatim,"; \
            echo "==> hyperref, color, listings, makeidx, xparse, tikz"; \
            exit 1)
        if grep 'LaTeX Warning: .*Rerun' book.log; then mv $@ tmp; fi

I now explicitly delete book.dvi if there is this respective LaTeX
Warning in the log file. Then an explicit call to ${MAKE} book.dvi will
try to remake book.dvi and may fail again. However, it might happen that
there is enough information left from a previous ${MAKE} so that a third
"make book.dvi" is not necessary. If running in a clean environment
(with the above removal of book.dvi), latex will be called 3 times.

For development it's nice to have as few latex runs as possible.

Ralf

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/f2623ded-97c5-23f4-dad0-5e79ff39076e%40hemmecke.org.

Reply via email to