Alexander Mai wrote:
> On Tue, 28 Aug 2001 21:35:42 +0200, Karsten Jensen wrote:
> 
> 
>>>>>motif_TESTS = $(OBJECTS:.o=.motif)
>>>>>
>>>>>
>>>>>motif_TESTS = $(noinst_PROGRAMS:.o=.motif)
>>>>>
>>>>>
>>>>I can't se this will work. i think i should be
>>>>
>>>>motif_TESTS = $(pathsubst,%,%.motif,$(noinst_PROGRAMS))
>>>>
>>>>Karsten Jensen
>>>>
>>>>
>>>? The former seems to have done the job for quite some time.
>>>
>>Okay, i just don't how - there is not a .o in the program names. But if 
>>it works all is well.
>>
>>>And yours somethow looks like a "GnuMake'ism", is it?
>>>
>>Yes you are probably right
>>
> 
> Arghhh, sorry!
> I messed up things.
> The first line I wrote does work, my one is really
> likely to be broken, we have for sure no .o in our executable
> names :-)
> 
> Ok, nothing happened yet and we better test first,
> before we process all Makefile.am's using a wrong patch :-)
> 
Another way to do it is:

PROGRAM_OBJS = test1.o test2.o test3.o
noinst_PROGRAMS = $(PROGRAM_OBJS:.o=)

and later
motif_TESTS = $(PROGRAMS_OBJS:.o=.motif)

It seems like automake can handle this

Karsten Jensen

Reply via email to