[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Executing a shell script in a Makefile
From: |
Paul D. Smith |
Subject: |
Re: Executing a shell script in a Makefile |
Date: |
Wed, 29 Sep 2004 16:28:22 -0400 |
%% G2345C <address@hidden> writes:
g> because the next statement get executed and it failed
g> because foo.o is not yet get copy.
There is simply no way whatsoever that make is invoking the second line
before the first finishes. The code just doesn't work that way.
g> Now if I modified the makefile to this:
g> all :
g> $(SHELL) ./copyfile.sh
g> then run it.
g> wait for about 1 minute....
g> then modify the makefile to this:
g> all :
g> cd $(OBJ_DIR) && mv foo.o newfoo
g> then run again it work great
Is this directory an NFS partition? Maybe there is an issue where the
new file isn't visible immediately.
Or, maybe the copyfile.sh script puts the copy command into the
background then the copyfile.sh script exits before the copy command is
complete. Try adding -x after the $(SHELL) line and see what's going
on.
Otherwise, I don't have any idea, but it's not the case that make is
invoking the second line before the first one finishes.
--
-------------------------------------------------------------------------------
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
- 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,
Paul D. Smith <=
- 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, 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, Paul D. Smith, 2004/09/29
- Re: Executing a shell script in a Makefile, G2345C, 2004/09/30