[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Executing a shell script in a Makefile
From: |
G2345C |
Subject: |
Re: Executing a shell script in a Makefile |
Date: |
Wed, 29 Sep 2004 14:22:26 -0700 (PDT) |
Thanks for all your help... I think I am going to give
up on this one :-). I am going to try a different way
and i need help with already
here is the make file
all :
if [ -d $(GPS_ENGINE_OBJS_DIR) ] ; then \
for f in `cd $(GPS_ENGINE_OBJS_DIR) && ls` ; do
\
case $$f in \
*.lo) HB="$(HB) `echo $$f`" ;; \
*) ;; \
esac ; \
done \
fi
echo $(HB)
I want to put all of the file that name is *.lo into a
string $(HB) how do I do that
Right now it echo empty string $(HB)
Thanks
--- "Paul D. Smith" <address@hidden> wrote:
> %% Noel Yap <address@hidden> writes:
>
> ny> I also don't see any backgrounded processes.
> The only other thing
> ny> I can think of is what Paul had said about
> NFS.
>
> g> all :
> g> $(SHELL) ./copyfile.sh
> g> cd $(OBJ_DIR) && mv foo.o newfoo
>
> Try changing your rule like this:
>
> all :
> $(SHELL) ./copyfile.sh; \
> [ -f $(OBJ_DIR)/foo.o ] || echo
> $(OBJ_DIR)/foo.o not there
> cd $(OBJ_DIR) && mv foo.o newfoo
>
> and see what happens.
>
> --
>
-------------------------------------------------------------------------------
> Paul D. Smith <address@hidden> Find some
> GNU make tips at:
> http://www.gnu.org
> http://make.paulandlesley.org
> "Please remain calm...I may be mad, but I am a
> professional." --Mad Scientist
>
=====
-------------------------
http://www.nguyen.bz/dvd
-------------------------
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
- Re: Executing a shell script in a Makefile, (continued)
- Re: Executing a shell script in a Makefile, Paul D. Smith, 2004/09/29
- Re: Executing a shell script in a Makefile, G2345C, 2004/09/29
- Re: Executing a shell script in a Makefile, Paul D. Smith, 2004/09/29
- Re: Executing a shell script in a Makefile, G2345C, 2004/09/29
- Re: Executing a shell script in a Makefile, Noel Yap, 2004/09/29
- Re: Executing a shell script in a Makefile, Paul D. Smith, 2004/09/29
- Re: Executing a shell script in a Makefile,
G2345C <=
- Re: Executing a shell script in a Makefile, Paul D. Smith, 2004/09/29
- Re: Executing a shell script in a Makefile, G2345C, 2004/09/29
- Re: Executing a shell script in a Makefile, Paul D. Smith, 2004/09/29
- Re: Executing a shell script in a Makefile, G2345C, 2004/09/30