help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU MAKE issue


From: Oliver Shariff III
Subject: GNU MAKE issue
Date: Mon, 20 Dec 2010 02:02:56 -0800 (PST)
User-agent: G2/1.0

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 */


reply via email to

[Prev in Thread] Current Thread [Next in Thread]