Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3A012DA9.3DE89001@dddandr.octacon.co.uk>
Date: Thu, 02 Nov 2000 09:02:33 +0000
From: Don Sharp <Don.Sharp@dddandr.octacon.co.uk>
Reply-To: dwsharp@iee.org
X-Mailer: Mozilla 4.74 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: gnuwin32 <cygwin@sourceware.cygnus.com>
Subject: Re: make
References: <OFCBF1CBCA.759295C8-ONCC25698A.0076374F@akl>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Try this fragment

#
SUBDIRS		= dir1	\
		  dir2	\
                  ...   \
		  dirn

all::
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
	for i in $(SUBDIRS) ;\
	do \
		(cd $$i ; echo "making" all in $$i..."; \
		$(MAKE) $(MFLAGS)); \
	done

Hope that helps

Don Sharp


CGuerra@brocker.co.nz wrote:
> 
> Hi all,
> 
> I'm trying to include a file from a makefile, but it says that the file is
> not there. I'm using the UNIX_MODE and sh.   In the current directory I
> have a makefile with the following line. The global file is in the same
> directory.  What's wrong??
> 
> include "global"
> 
> I also would like to get an example of how to traverse subdirectories and
> do a make in each of them.
> 
> Thanks in advance!!
> 
> Carlos.
> cguerra@brocker.co.nz
> 
> PS:  please cc me to my email account as well.
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

