Unfortunate infinite make recursion

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <sam@...>, <zippel@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>
Date: Saturday, September 22, 2007 - 7:24 am

Hi,


You can cause a recursion in kbuild/make with the following:

make O=$PWD kernel/time.o
make mrproper

Of course no one would use O=$PWD (that's just the testcase),
but this happened too often:

/ws/linux/linux-2.6.23$ make O=/ws/linux/linux-2.6.23 kernel/time.o
(Oops - should have been O=/ws/linux/obj-2.6.23!)

The make O=$PWD truncates the Makefile, making it necessary to run `git 
checkout Makefile` - should you have git; or reextract the tarball 
(should you /still/ have it). Well, can we catch this case somehow?


thanks,
Jan
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Unfortunate infinite make recursion, Jan Engelhardt, (Sat Sep 22, 7:24 am)
Re: Unfortunate infinite make recursion, Sam Ravnborg, (Sat Sep 22, 4:52 pm)
Re: Unfortunate infinite make recursion, Jan Engelhardt, (Sun Sep 23, 2:17 am)
Re: Unfortunate infinite make recursion, Oleg Verych, (Sat Sep 22, 11:42 am)
Re: Unfortunate infinite make recursion, Sam Ravnborg, (Sat Sep 22, 4:40 pm)
Re: Unfortunate infinite make recursion, Oleg Verych, (Sat Sep 22, 6:23 pm)
Re: Unfortunate infinite make recursion, Sam Ravnborg, (Sun Sep 23, 2:03 am)
Re: Unfortunate infinite make recursion, Oleg Verych, (Sun Sep 23, 3:37 am)