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


[EMAIL PROTECTED] 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.
> [EMAIL PROTECTED]
> 
> PS:  please cc me to my email account as well.
> 
> --
> Want to unsubscribe from this list?
> Send a message to [EMAIL PROTECTED]


--
Want to unsubscribe from this list?
Send a message to [EMAIL PROTECTED]

Reply via email to