This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: make


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]