help-gnu-utils
[Top][All Lists]
Advanced

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

Re: make question (static pattern rule)


From: Renato Golin
Subject: Re: make question (static pattern rule)
Date: Fri, 29 Sep 2006 10:41:47 +0100
User-agent: Thunderbird 2.0a1 (X11/20060724)

James wrote:
aa/bb/obj/x.o: %.o: ../%.c

Does make allow two : on the same rule line?

try duplicating the command lines:

aa/bb/obj/x.o:  ../%.c
        @echo R1 $@ $<

%.o: ../%.c
        @echo R0 $@ $<


I use it and it works as expected. I know it's not beautiful (specially to multiple specific rules and one generic as is my case) so if you find a better way, let me know. ;)

thanks,
--renato


reply via email to

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