help-make
[Top][All Lists]
Advanced

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

Re: ordering the targets


From: Paul Smith
Subject: Re: ordering the targets
Date: Sat, 10 Feb 2007 13:33:40 -0500

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 <address@hidden>          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




reply via email to

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