help-make
[Top][All Lists]
Advanced

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

Ordering targets as arguments


From: Erik Rull
Subject: Ordering targets as arguments
Date: Sat, 13 Nov 2010 23:58:28 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.15) Gecko/20101027 Lightning/1.0b1 SeaMonkey/2.0.10

Hi all,

how can I force make to "sort" targets that were given as arguments?

e.g. I want to type at prompt
make object obj=test copy_object
What should happen:
object gets executed and afterwards copy_object gets executed

Well yes - I could write a rule like
copy_object: object
        [....]

But this would mean that object gets executed also if I did not give it as an argument to the make command.

I don't need a general handling of the sequence of the arguments only for this special rule I want to have it executed after all other rules (also with -j - not parallelized with the other stuff.

Any ideas?

Best regards,

Erik



reply via email to

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