[oclug] My "Achillies Heel" Make files...
Bart Trojanowski
bart at nexus.carleton.ca
Sun Feb 18 22:26:27 EST 2001
On Sat, 17 Feb 2001, John Dowd wrote:
> Gawd, I hate them!!
Like women, we are a lot better off having them then not.
> I have a question to anyone out ther who has worked with them and has also
> worked with the linux kernel.
I will see if I can help.
> I've been working on an embedded release of linux for a particular PPC based
> card and I've placed the distribution into a repository system called
> "bitkeeper". It uses SCCS as its local repository control system and places a
> SCCS directory of each directory of the source code tree. When I do a "make
> zImage" it walks the tree including the "SCCS" directories which causes all
> sorts of problems. I had always thought that "make" knew about RCS and SCCS
> and would ignore these directories without any special commands in the
> makefile. I'm obviously wrong and I'm wondering what I have to do to get it
> to ignore these directories. There is also a "Bitkeeper" directory at the top
> I will have to exclude from walking through the tree as well.
First off your problem is not with make. GNU make will not walk into
subdirectories unless the makefile tells it to do so. You issues lie with
the configuration of the Linux make system.
Next, I have certainly never seen this. I work with CVS which like what
you mentioned above uses subdirectories (CVS in my case) to store the
repository meta-data. However, the makefiles in the kernel tree to not
compile all sibdirs they can find. They walk through subdirs that are
defined by your configuration (see SUBDIRS in Makefile). Some of those
directories contain further subdirectories which in turn may contain more.
In all these cases (that I have checked) the directories are listed - as
opposed to walking into all sub directories.
To conclude... I will need a bit more data to try to help you.
B.
--
WebSig: http://www.jukie.net/~bart/sig/
More information about the OCLUG
mailing list