Google Answers Logo
View Question
 
Q: strange error from `make' ( No Answer,   1 Comment )
Question  
Subject: strange error from `make'
Category: Computers > Programming
Asked by: cgn-ga
List Price: $2.00
Posted: 02 Aug 2006 17:48 PDT
Expires: 01 Sep 2006 17:48 PDT
Question ID: 752025
When I try to use "make" to run LaTeX and other programs to create
paper.ps, I get the error message
make: *** No rule to make target `paper.tex,', needed by `paper.dvi'.  Stop.

But paper.tex is not a target file, it is a source file.  Here is my makefile:

proof: paper.ps 
	evince paper.ps&

paper.ps: paper.dvi
	dvips paper -o

paper.dvi: paper.tex, lex.tex, pp.tex, format.tex
	latex paper.tex

lex.tex: lex.pp.lim
	nanoweb < lex.pp.lim > lex.tex

lex.pp.lim: lex.lim
	pplim lex.lim > lex.pp.lim;

pp.tex: pp.pp.lim
	nanoweb < pp.pp.lim > pp.tex

pp.pp.lim: pp.lim
	pplim pp.lim > pp.pp.lim

format.tex: format.pp.lim
	nanoweb < format.pp.lim > format.tex

format.pp.lim: format.lim
	pplim format.lim > format.pp.lim;

And here is the transcript from my shell window, showing the error and
showing that the required source file is in the directory:

[greg@filer pp]$ make
make: *** No rule to make target `paper.tex,', needed by `paper.dvi'.  Stop.
[greg@filer pp]$ ls -lt paper.tex
-rw-rw-r--  1 greg greg 829 Aug  2 16:08 paper.tex
[greg@filer pp]$  

Could make be confused because other files with the extension".tex"
are target files (since they are generated by nanoweb)?  What is the
problem and how can I fix it?

thanks,

Greg Nelson
Answer  
There is no answer at this time.

Comments  
Subject: Re: strange error from `make'
From: bcattwood-ga on 03 Aug 2006 05:34 PDT
 
I think the problem is that you should not have commas between the
required files.  The fact that it complains about target "paper.tex,"
instead of just "paper.tex" seems to confirm that.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy