Re: [evolution-patches] Use $(API_VERSION) in Makefiles



On Fri, 2005-04-22 at 11:39 -0400, Rodney Dawes wrote:
> Actually automake handles $(foo) as in libfoo-$(foo).la fine. The
> problem is that for _SOURCES, etc..., it doesn't handle periods in
> the string. This means that for $(API_VERSION), you'd have to create
> a variable in configure.(ac|in), that uses $(API_VERSION), and replaces
> the . character with the _ character. I think libfoo_$(FOO)_la_SOURCES
> will work, if you do that.

My experiment was to do this:

lib_LTLIBRARIES = libedataserver-$(API_VERSION).la
libedataserver_1_3_la_SOURCES =		\
	...

If the expansion is happening correctly in the lib_LTLIBRARIES line,
then creating an symbol for "1_3" would be the next step, but re-running
automake gives this:

libedataserver/Makefile.am:50: invalid unused variable name: `libedataserver_1_3_la_LDFLAGS'
libedataserver/Makefile.am:47: invalid unused variable name: `libedataserver_1_3_la_LIBADD'
libedataserver/Makefile.am:42: invalid unused variable name: `libedataserver_1_3_la_SOURCES'

I welcome being corrected on this if a newer automake works.

Ross
-- 
Ross Burton                                 mail: ross burtonini com
                                          jabber: ross burtonini com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

Attachment: signature.asc
Description: This is a digitally signed message part



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