Build a lib, then example programs

2007-08-08 Thread myrdos2
I've been trying to use the autotools to compile a static library. The lib itself compiles and installs OK, but I'm having trouble with the example programs. These programs must be linked with the lib to compile. I keep getting 'undefined reference' errors when I try to compile them, even if the l

Re: %-style pattern rules

2007-08-08 Thread Lorenzo Bettini
Ralf Wildenhues wrote: However, I suspect I won't be able to adapt rules such as %.lang.texinfo: $(top_srcdir)/tests/%.lang will I? You can try playing with VPATH. But note that Automake uses VPATH for $(srcdir) so you may find it less error-prone to just put the %.lang files in $(srcdir).