Greetings all,

 

I have a very strange problem with Gnu make. I'm not a make newbie by
any stretch of the imagination, but it has me completely stumped. I
apologise for the vagueness below but, for various reasons, I can't
really be more specific. I hope that the following is sufficient for
somebody to give me a clue.

 

I'm using make version 3.81 under Centos 5.5. We have a very convoluted
build system that I am no expert on (and definitely don't want to be!).
All of the following is reduced to the bare minimum to describe the
problem.

 

In a Makefile in a subdirectory of our top level directory, I have some
rules:

 

outfile: infile

cmd < infile > outfile

 

anotherFile: outfile

 

When I run make in the top level directory, it descends into this
directory and runs cmd to build outfile correctly. If I then manually
remove outfile and run the top-level make again, it says:

 

                make: *** No rule to make target `outfile', needed by
`anotherFile'.  Stop.

 

To fix it, I simply touch the subdirectory's Makefile and it will then
correctly build outfile again.

 

If anybody has any clues on this, it would be much appreciated.

 

Regards,

                Graham

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to