All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori@us.ibm.com>
To: Hollis Blanchard <hollisb@us.ibm.com>
Cc: xen-devel@lists.sourceforge.net,
	Adam Heath <doogie@brainfood.com>,
	Jerone Young <jyoung5@us.ibm.com>
Subject: Re: [PATCH] tools top level makefile cleanup
Date: Wed, 23 Mar 2005 14:48:12 -0600	[thread overview]
Message-ID: <4241D60C.5090205@us.ibm.com> (raw)
In-Reply-To: <200503231415.41327.hollisb@us.ibm.com>

Hollis Blanchard wrote:

>Well, I guess it's not very dissimilar after all.
>
>But I really don't like that for every command to recurse with (e.g. clean), 
>you must add more hackery to the Makefile. Your snippet has the same problem 
>(let's add "clean"...), and it seems all the Makefiles have all the issues 
>discussed in different places.
>
>Is there really no better way to solve this problem?
>  
>
The following works for me.  You need a default rule or else make gets 
really confused but the wildcard rule will catch everything else.

SUBDIRS=sub sub1

all:
    @for i in $(SUBDIRS); do \
       $(MAKE) -C $$i $@; \
    done

%:
    @for i in $(SUBDIRS); do \
       $(MAKE) -C $$i $@; \
    done



-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click

  reply	other threads:[~2005-03-23 20:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-22 21:10 [PATCH] tools top level makefile cleanup Jerone Young
2005-03-22 21:33 ` Adam Heath
2005-03-22 21:46   ` Jerone Young
2005-03-23 18:01     ` Adam Heath
2005-03-23 20:15       ` Hollis Blanchard
2005-03-23 20:48         ` Anthony Liguori [this message]
2005-03-23 20:57           ` Hollis Blanchard
2005-03-24 20:13             ` Adam Heath
2005-03-24 20:08           ` Adam Heath
2005-03-24 20:07         ` Adam Heath
2005-03-23 21:11 ` Christian Limpach
2005-03-23 21:17   ` Hollis Blanchard
2005-03-23 22:35     ` Christian Limpach
2005-03-24 20:11   ` Adam Heath
  -- strict thread matches above, loose matches on Subject: below --
2005-03-22 22:18 Nakajima, Jun
2005-03-22 22:14 ` Jerone Young
2005-03-22 22:25 Nakajima, Jun
     [not found] <mailman.1111526259.18440@unix-os.sc.intel.com>
     [not found] ` <4240A373.7080406@intel.com>
2005-03-23 20:41   ` Jerone Young
     [not found] <488257396@toto.iv>
2005-03-24 14:56 ` Jimi Xenidis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4241D60C.5090205@us.ibm.com \
    --to=aliguori@us.ibm.com \
    --cc=doogie@brainfood.com \
    --cc=hollisb@us.ibm.com \
    --cc=jyoung5@us.ibm.com \
    --cc=xen-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.