bug-make
[Top][All Lists]
Advanced

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

add order-only-prerequisites example


From: Dan Jacobson
Subject: add order-only-prerequisites example
Date: Sun, 29 Aug 2004 03:48:02 +0800

     TARGETS : NORMAL-PREREQUISITES | ORDER-ONLY-PREREQUISITES
Well, you got me there. Without examples, we have trouble grasping
how to utilize what this Info page is talking about.

Obviously the authors must have learned about make from something that
we can't find on our Debian system. Probably one must buy a book to
find the full story.

Hmmm,
      Occasionally, however, you have a situation where you want to impose
   a specific ordering on the rules to be invoked _without_ forcing the
   target to be updated if one of those rules is executed.  In that case,
   you want to define "order-only" prerequisites.

Sounds just like what I need. Let's print the date before and afterwards,
a:|date job date
date:;
job:;echo $@
That doesn't work. Double colons don't help either.




reply via email to

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