make doesn't honor -n switch plus wrong target selection

2007-09-10 Thread Jeenu V
Hi, I was experimenting on the recursive invocation of make. I found something that's not expected and couldn't find out why that happens by reading the manual. Please see the attached package. Problem 1: Make is not recognizing the first available target all and is going behind another one. I

Re: make doesn't honor -n switch plus wrong target selection

2007-09-10 Thread Paul Smith
On Mon, 2007-09-10 at 15:37 +0530, Jeenu V wrote: Please see the attached package. It's difficult for us to unpack and debug larger packages. It's easier if you provide just a single makefile, and also show the command you invoked and show the output you received (cut and paste, please)

Re: make doesn't honor -n switch plus wrong target selection

2007-09-10 Thread Paul Smith
Please always CC the mailing list. On Mon, 2007-09-10 at 19:13 +0530, Jeenu V wrote: Your problem is here: DIRS = $(shell ls) Thanks for this too. Actually I tried to get the list of directories with this command: $(shell for i in $(ls -d */); do echo $i | sed