Hello Yuri, nice to read from you again,
* Юрий Пухальский wrote on Fri, Nov 27, 2009 at 10:38:15AM CET:
> Automake links binaries through libtool too, at least in my case.
Yes, but it doesn't compile the objects for non-libraries using libtool,
just like Jack explained.
> And yes, it works when i make a rule from .pc to .c, but:
> How do i clean the intermediate .c file in this case?
Just don't, at least not outside of a *clean target.
> I must add BUILT_SOURCES everywhere,
No.
> use EXTRA_DIST for distributing the original files.
No.
> Generally it's less clear than specifying .pc file directly in _SOURCES.
That's why you should do it like this:
.pc.$(OBJEXT):
...
Then all of the above works, just like Jack wrote.
> As for silliness, it's exactly as silly as default .l.o implicit rule
> in standard make:
> .l.o:
> $(LEX) $(LFLAGS) $<
> $(CC) $(CFLAGS) -c lex.yy.c
> rm -f lex.yy.c
> mv lex.yy.o $@
This is just done because one cannot teach traditional lex to produce
another output file. The silliness really comes from the lex interface.
Cheers,
Ralf