Re: Re: New make PATH problem(?)

[email protected]
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
Eli,
Thanks for the suggestion. The original Makefile outputs a great deal to the console.
I commented out everything but the problematic code, which still demonstrates the problem.
The modified Makefile is:

        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


I then ran make on this Makefile with the --debug=vj option using both the earlier and the latest make versions

Case (1)
C:\msys\1.0\bin in PATH, mingw32-make (from mingw32-make-3.81-2.tar.gz) and --debug=vj
Console output:
    GNU Make 3.81
    Copyright (C) 2006  Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.

    This program built for i386-pc-mingw32
    find_and_set_shell path search set default_shell = C:/msys/1.0/bin/sh.exe
    Reading makefiles...
    Reading makefile `makefile'...
    Updating goal targets....
    Considering target file `refman.pdf'.
     File `refman.pdf' does not exist.
      Considering target file `refman.tex'.
       Finished prerequisites of target file `refman.tex'.
      No need to remake target `refman.tex'.
     Finished prerequisites of target file `refman.pdf'.
    Must remake target `refman.pdf'.
    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
    Main thread handle = 0x000007ac
    Successfully remade target file `refman.pdf'.

Case (2)
C:\msys\1.0\bin in PATH, mingw32-make (from mingw32-make-3.81-20080326.tar.gz) and --debug=vj
Console output:
    GNU Make 3.81
    Copyright (C) 2006  Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.

    This program built for i686-pc-mingw32
    Reading makefiles...
    Reading makefile `makefile'...
    Updating goal targets....
    Considering target file `refman.pdf'.
     File `refman.pdf' does not exist.
      Considering target file `refman.tex'.
       Finished prerequisites of target file `refman.tex'.
      No need to remake target `refman.tex'.
     Finished prerequisites of target file `refman.pdf'.
    Must remake target `refman.pdf'.
    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
    Main thread handle = 0x000007bc
    'latex_count' is not recognized as an internal or external command,
    operable program or batch file.
    mingw32-make-new: *** [refman.pdf] Error 255


As I am sure you expected, Case (2) does not have a statement like
    find_and_set_shell path search set default_shell = C:/msys/1.0/bin/sh.exe
Maybe I need to have a macro or something set.

Thanks,
Bob


--
This message was sent on behalf of [email protected] at openSubscriber.com
http://www.opensubscriber.com/message/[email protected]/9000687.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.