delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/11/02/08:46:35

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 2 Nov 2000 08:45:25 -0500
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: CGuerra AT brocker DOT co DOT nz
Cc: cygwin AT sources DOT redhat DOT com
Subject: Re: make
Message-ID: <20001102084525.A1037@dothill.com>
References: <OFCBF1CBCA DOT 759295C8-ONCC25698A DOT 0076374F AT akl>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <OFCBF1CBCA.759295C8-ONCC25698A.0076374F@akl>; from CGuerra@brocker.co.nz on Thu, Nov 02, 2000 at 10:36:52AM +1300
Organization: Dot Hill Systems Corp.

Carlos,

On Thu, Nov 02, 2000 at 10:36:52AM +1300, CGuerra AT brocker DOT co DOT nz wrote:
> I also would like to get an example of how to traverse subdirectories and
> do a make in each of them.

Use GNU make's -C option, as in the following:

SubDir = dir2 dir2 dir3

all:: $(SubDir)

clean:: $(SubDir)

.PHONY: $(SubDir)

$(SubDir):
	$(MAKE) -C $@ $(MAKECMDGOALS)

Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019