Re: make question (static pattern rule)

Renato Golin <[email protected]>
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.