help-make
[Top][All Lists]
Advanced

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

Re: Implicit rules in sub-directories


From: Paul Smith
Subject: Re: Implicit rules in sub-directories
Date: Tue, 01 Jun 2010 08:48:18 -0400

On Tue, 2010-06-01 at 19:54 +0900, Aditya Kher wrote:
> libA_ref_model.so: ; ${MAKE} --dir=A libA_ref_model.so

This rule has no prerequisites, so it will be only ever be run if the
target doesn't exist.  That's obviously not what you want.

Instead you need to force this rule to be always run.  You can try
something like this:

        libA_ref_model.so: FORCE
                $(MAKE) --dir=A $@

        FORCE: ;

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "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]