This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
While compiling C files under HP-UX with make , im getting the the error as follows $HOME/xmlrpc/make-3.81/make /orainst/rcsinbg1/xmlrpc/make-3.81/make -C cpp/ all make: *** cpp/: No such file or directory. Stop. make: *** [cpp/all] Error 2
The Makefile has been modified to include all the required C files. Still I dont understand why it still looks for cpp files which results in Make failure Can anyone throuw some light on this ? Thanks Amit
Assuming you're typing "$HOME/xmlrpc/make-3.81/make", the next line looks like Make echoing the command being executed. That command would come from some rule in the Makefile. The command "make -C cpp/ all" is telling make to change into the directory "cpp/" and execute the Makefile in that directory; apparently there's no such directory. Without seeing your Makefile, I can't tell you why Make is trying to do this; but that's what it's doing.
OK, well, this is the rule that expands into the command that throws the error:
and it's obvious how it expands into the command line you see in your error message. So this is pretty straightforward stuff: you're asking for make to cd into the "cpp" directory before doing anything. Is there such a directory? If not, then, well, that's the problem -- why is there such a rule (the default rule, in fact) if there's no such directory that needs building?
Joined: Mar 15, 2004
Ernest thanks again for your comments. Well This makefile changes done by someone else and hes no loger in te company so Im looking into this. I dont think it will affect if I comment this line Thanks again Amit
author and iconoclast