Unix Programming - How to use "$" as parameter to command in makefile

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2005 > How to use "$" as parameter to command in makefile





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 How to use "$" as parameter to command in makefile
gdevah@gmail.com

2005-07-28, 6:00 pm

Hi all
i am facing some problem in excuting below makefile.
-Makefile
mogen:
sed -n '/MoList/,/^[ ]*$/ p' \
../../codegen/build/generation.properties
-Makefile
-o/p
sed: command garbled: /MoList/,/^[ ]* p
*** Error code 2
clearmake: Error: Build script failed for "mogen"
-o/p
The problem is using $ in the command as an argument to sed.
can some help me to send $ as argument to sed...
thanks lot for helping me
devajh

Rouben Rostamian

2005-07-28, 6:00 pm

In article <1122591089.933372.167400@g47g2000cwa.googlegroups.com>,
<gdevah@gmail.com> wrote:
>Hi all
>i am facing some problem in excuting below makefile.
>-Makefile
>mogen:
> sed -n '/MoList/,/^[ ]*$/ p' \
> ../../codegen/build/generation.properties
>-Makefile
>-o/p
>sed: command garbled: /MoList/,/^[ ]* p
>*** Error code 2
>clearmake: Error: Build script failed for "mogen"
>-o/p
>The problem is using $ in the command as an argument to sed.
>can some help me to send $ as argument to sed...


Instead of $ type $$.

--
rr
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com