# ============================================================== # Copyright (c) 1996-1998 Tim Barbour. # Copyright (c) 1998-1999 ACT Financial Systems Pty Ltd. # All Rights Reserved. # This make library may be used and distributed under the terms # of the GNU LGPL, as published by the Free Software Foundation. # See the file COPYING for details. # ============================================================== # $Id: recurse_ways.mk,v 1.15 2001/11/21 02:45:25 trb Exp $ #------------------------------------------------------------------------------------------------------- # text requires: DEFAULT_WAYS WAYS #------------------------------------------------------------------------------------------------------- # rules require: #------------------------------------------------------------------------------------------------------- # refers to: #------------------------------------------------------------------------------------------------------- # provides rules for: allowing way-dependent targets to recurse over ways #------------------------------------------------------------------------------------------------------- # provides variables: way (to sub-makes) #------------------------------------------------------------------------------------------------------- # provides commands: #------------------------------------------------------------------------------------------------------- # contributes to: #------------------------------------------------------------------------------------------------------- # rule supplying way recursion for way dependent targets # only recurse into ways within target_platform recursion # relation with subdir recursion is handled in unscoped.mk ifneq ($(target_platform),) $(way_dependent_targets) :: @case '${MFLAGS}' in *-[ik]*) set +e;; *-r*[ik]*) set +e;; *-w*[ik]*) set +e;; *) set -e;; esac; \ for i in $(ways) ; do \ echo "=== making $@ for way $$i ..."; \ $(MAKE) way=$$i $@ ; \ done endif