help-make
[Top][All Lists]
Advanced

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

%.ext as prerequisite


From: Tobias contreras
Subject: %.ext as prerequisite
Date: Thu, 13 Jul 2006 13:16:55 -0400

Ive read the help make archive, "Using the target of a pattern rule as a prerequisite " but no luck

How can I have %.o as a prerequisite for another target
like:

buildme: $(otherstuff) %.o
       command1
       command2

%.o : %.c
    echo $<

Do i need a var that contains all the *.o files like $(obj): %.o: %.c then use $(obj) as the prequisite, or is there a quicker way?
thanks

reply via email to

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