bug-automake
[Top][All Lists]
Advanced

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

Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS)


From: Daniel Richard G.
Subject: Doesn't work: blah_PROGRAMS = $(EXTRA_PROGRAMS)
Date: Fri, 27 Mar 2009 00:07:49 -0400

This is the bug I was going to submit originally, before the whole 
shift-on-HP-UX issue got me distracted :-)

I have a Makefile.am with programs that are conditionally compiled, e.g.

        EXTRA_PROGRAMS = foo bar

        if ENABLE_STUFF
        bin_PROGRAMS = foo bar
        endif

Which works as advertised. Now, I'm looking at that, and figure, hey, there's 
a bit of redundancy we can eliminate here...

        EXTRA_PROGRAMS = foo bar

        if ENABLE_STUFF
        bin_PROGRAMS = $(EXTRA_PROGRAMS)
        endif

I go to regenerate the makefile, and, what's all this then?

        automake: bar_OBJECTS should not be defined
        Makefile.am:1:   while processing program `bar'
        automake: foo_OBJECTS should not be defined
        Makefile.am:1:   while processing program `foo'

bar_OBJECTS? foo_OBJECTS? Where?? And I got all confused and thought I should 
bring it to the attention of this list.


--Daniel


-- 
Daniel Richard G. || address@hidden || Software Developer
Teragram Linguistic Technologies (a division of SAS)
http://www.teragram.com/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]