make

Don Sharp Don.Sharp@dddandr.octacon.co.uk
Thu Nov 2 01:14:00 GMT 2000


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



More information about the Cygwin mailing list