[Top][All Lists]

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

Re: How can I call one target from another

From: Paul D. Smith
Subject: Re: How can I call one target from another
Date: Wed, 13 Feb 2002 12:51:24 -0500

%% "Anthony Di Paola" <address@hidden> writes:

  adp> Is there any cleaner way to do the following.  I was hoping I
  adp> could do the samething without explicitly calling make from the
  adp> command line.

You cannot invoke one target from another without a submake.

  adp> target_1:
  adp>     <do something>
  adp>     $(MAKE) target_2:
  adp>     <do something else>
  adp> target_2:
  adp>     <do whatever>

You could try this:

  target_1: target_2
          <do something else>

  target_2: do_something
          <do whatever>

          <do something>

  .PHONY: do_something

 Paul D. Smith <address@hidden>          Find some GNU make tips at:            
 "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]