help-make
[Top][All Lists]
Advanced

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

Re: Dealing with commands that generate more than one target with -j


From: Paul D. Smith
Subject: Re: Dealing with commands that generate more than one target with -j
Date: Tue, 9 Aug 2005 09:23:09 -0400

First of all, if the targets to be created have a common part, you can
use a pattern rule:

    %.h %.c : a
            foo a

will work as you expect: multiple target patterns behave differently
from multiple non-pattern targets.


If you can't write a pattern rule then typically this is done with a
pseudo target, like this:

  a.h a.c: .fake

  .fake:
        foo a
        @touch $@

-- 
-------------------------------------------------------------------------------
 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]