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
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to