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