Make dependency order and .INTERMEDIATE
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Make dependency order and .INTERMEDIATE




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Make dependency order and .INTERMEDIATE  
Richard.Puchmayer@nautronix.com.au


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-21-05 07:52 AM

Hi,

I've got a quick question.

Here's my makefile:

-----------------------------------
.PHONY: a b c Makefile foo

.INTERMEDIATE: a

foo: a b c

a:
echo "done a"

b:
echo "Done b"

c:
echo "Done c"
------------------------------------

The .PHONY is only there to shortcut a lot of implicit searches (keeps
-d short).
Now, I *expect* make to build the dependencies in the order stated, ie,
a, then b,
then c.

However, beacuse I've got the '.INTERMEDIATE: a' in there is does it in
the order:
b, then c, then a.

Why does the order change?

Cheers,
RiP

----
Richard Puchmayer
Richard.Puchmayer@nautronix.com.au
Perth, WA, Australia






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:56 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register