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