opensubscriber
   Find in this group all groups
 
Unknown more information…

h : help-gnu-utils@gnu.org 20 December 2010 • 6:02PM -0500

GNU MAKE issue
by Oliver Shariff III

REPLY TO AUTHOR
 
REPLY TO GROUP





Hello, Im having troubles by getting shell command results to fix my
makefile,
could you please help me? im trying to get that `pwd | tr -s "/" " "`
and include result inside
echo $$word line...

I paste complete code of macro I am working on; what I want us to get
value from $(shell pwd | tr -s "/" " ") and include it
on next echo "$$word/$$found......"
but it seems $(shell) is not working properly or my sintaxys is sooo
bad...

Thank you for your reply



#ifndef IDLGenerarImakefileADA
#define IDLGenerarImakefileADA(dir_idl, dir_idl_new, src_idl,
dir_ada_idl)\
        word=$(shell pwd | tr -s "/" " ");   export word;
\                         @@\
        echo word is $$word ;\
        echo "$$word/$$found$$tr$$relEntorno/SactaImakefile.rules" >
dir_ada_idl/Imakefile; \    @@\                                 @@\
        echo ".................Generando Imakefile para
ADA...................." ;\                @@\
        echo "" ;
\
@@\
        lib_ada=`pwd | sed "s/IDL/ADA\/lib\/%PLATAFORMA%\/idl/g"` ; \
@@\
        echo "" >> dir_ada_idl/Imakefile ; \
@@\
        echo "LIB_ADA = $$lib_ada" >> dir_ada_idl/Imakefile ; \
@@\
        echo "" >> dir_ada_idl/Imakefile ; \
@@\
        echo "ADA_LIBRARIES = ../../../lib/%PLATAFORMA%/la_reu \\" >>
dir_ada_idl/Imakefile ; \       @@\
        for dir in dir_idl  ; \
@@\
        do \
@@\
          echo "$$lib_ada/$$dir \\" >> dir_ada_idl/Imakefile ; \
@@\
        done ; \
@@\
        for dir in dir_idl_new  ; \
@@\
        do \
@@\
    if [ ! "$$dir" = "NO_IDLS_ESTRUCTURA_NUEVA" ] ;
\                   @@\
    then
\                                                              @@\
      echo "../../$$dir/ADA/obj_%PLATAFORMA% \\" >> dir_ada_idl/
Imakefile ; \                @@\
    fi ;
\                                                              @@\
        done ; \
@@\
        echo "" >> dir_ada_idl/Imakefile ; \
@@\
        echo "SRC_ADA = \\" >> dir_ada_idl/Imakefile ; \
@@\
        for src in $(SRC_IDL)  ; \
@@\
        do \
@@\
        src_ada=`(echo "$$src") | sed "s/\.idl/\.a/g"`; \
@@\
        echo "$$src_ada \\" >> dir_ada_idl/Imakefile ; \
@@\
        done ; \
@@\
        my_pwd=`pwd` ; \
@@\
        cd dir_ada_idl ; \
@@\
        smake make ; \
@@\
        cd $$my_pwd ;
#endif /* IDLGenerarImakefileADA */

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.