On Fri, 2007-02-09 at 04:44 -0800, Bhargava wrote:
> hi,
>       i want to define two variables JSOURCES and JFLEX_SOURCES in my
> makefiles and compiles corresponding sources . Thing is i get the targets
> like this
> 
> targets += (edited JSOURCES) #edited in the sense i append .class  etc.,
> 
> and at a later stage i want to add some more targets to variable TARGET ,
> but i want to prepend them instead of appending like above.

If you're willing to use := (simple expansion) you can just say:

        TARGET := some new files $(TARGET)

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to