For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > February 2005 > Re: Compiling different version for a program with make









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Compiling different version for a program with make
pmatos

2005-02-19, 8:58 pm

Hi,

I posted it afterwards in the same thread just because I didn't want to
clutter c.u.p. with more Make question. The post was: (copy & paste)

"Feb 19, 2:47 pm show options
Newsgroups: comp.unix.programmer
From: "pmatos" <p...@sat.inesc-id.pt> - Find messages by this author
Date: 19 Feb 2005 14:47:18 -0800
Local: Sat, Feb 19 2005 2:47 pm
Subject: Re: Compiling different version for a program with make

OK, probably I'll define a script just to create that line and call
make. :)

One thing, in make clean, to delete .o files in all my src tree (which
is deep!) I have as a line in clean the following: @-for i in `find .
-name "*.o"`; do rm -f $i; done
but for some reason this is not working. :(

Is there any reason for this?"

Now, I know why it is not working but I don't know how to solve it...
$i is seen by make as its own variable and when send the command to the
shell since it is not defined just goes as a blank and does nothing.
How can I say bash, do not evaluate the variable?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com