Make file

From: Omid (n_o_sp_a_m_at_hotmail.com)
Date: 07/28/04


Date: 28 Jul 2004 00:46:05 -0700

Hi.

I have a newbie question regarding creating a Makefile.

I want to create a Makefile that runs "make" in 3 subdirectories.
Something like this:

---------------------------------------
-- Makefile ---------------------------
---------------------------------------
all:
 cd folder1
 make
 cd ..
 
 cd folder2
 make
 cd ..
 
 cd folder3
 make
 cd ..
---------------------------------------

However, this doesn't work.
The output is:
---------------------------------------
eomirou@E-56BCB50DA21A4 /my/path
$ make
cd folder1
make
make[1]: Entering directory `/my/path'
cd folder1
make
make[2]: Entering directory `/my/path'
cd folder1
make
make[3]: Entering directory `/my/path'
cd folder1
make
make[4]: Entering directory `/my/path'

etc...
---------------------------------------

Any suggestions about how to make this work?

/Omid



Relevant Pages

  • compiling external modules
    ... The recommeded procedure is to create a simple one line Makefile, ... compiled files, each with its own Makefile, switches, ... ... make: Entering directory `/path/to/source' ... Overriding SUBDIRS on the command line can cause ...
    (comp.os.linux)
  • problems trying to "make" it
    ... checking for attribute assignment... ... creating Makefile ... extconf.rb: Entering directory `gdkpixbuf' ... extconf.rb: Leaving directory 'gdkpixbuf' ...
    (comp.lang.ruby)
  • Re: [opensuse] NIC installation: What is this error?
    ... make: Entering directory ... It can't find some makefile ... dealing with your kernel. ...
    (SuSE)
  • Re: Make file
    ... Each line of execution inherits the ... Both ls commands will output the same value. ... Also, if you call make from inside a Makefile, use the $ ... > cd folder1 ...
    (comp.os.linux)
  • Dynamic link library
    ... Whilst rebuilding my lib as a shared one, ... make: Entering directory ... I am using a makefile and not the GNAT projects. ...
    (comp.lang.ada)