bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug#565791: the word 'Makefile' turns off -n safety cap


From: jidanni
Subject: Bug#565791: the word 'Makefile' turns off -n safety cap
Date: Mon, 18 Jan 2010 08:54:03 +0800

X-debbugs-cc: address@hidden
Package: make
Version: 3.81-7

Nope, make -n is definitely busted. If it senses the word 'Makefile' here,
if forgets that it is not supposed to execute anything, and even turns on
execution for make -n b!

$ cat Makefile
h:b
Makefile:b
b:
        rm -f /boot/vmlinuz-2.6.32-trunk-686
$ ls
Makefile  h
$ make -n
rm -f /boot/vmlinuz-2.6.32-trunk-686
rm: cannot remove `/boot/vmlinuz-2.6.32-trunk-686': Permission denied
make: *** [b] Error 1
$ make -n b
rm -f /boot/vmlinuz-2.6.32-trunk-686
rm: cannot remove `/boot/vmlinuz-2.6.32-trunk-686': Permission denied
make: *** [b] Error 1

Comment out Makefile and all is OK again.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]