Follow-up Comment #2, bug #8297 (project make):

Solaris "make" utility provides the following solution: if the 
targets are connected (separated) with a "+" sign, they are 
combined in a target group.

  target [+ target...] :  Target group. The rule in the target
                          entry  builds all the indicated tar-
                          gets as a group. It is normally per-
                          formed  only  once per make run, but
                          is checked for command  dependencies
                          every  time a target in the group is
                          encountered in the dependency scan.

Here is an example:

# Dependencies
cmdparser.hpp: cmdparser.cpp
cmdparser.cpp: cmdparser.y

# Common Rule
cmdparser.hpp + cmdparser.cpp:
        bison -d -o cmdparser.cpp cmdparser.y

I can be wrong, but I think POSIX standard allows this syntax.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=8297>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to