Follow-up Comment #4, bug #23273 (project make): patch attached
Posted this already on make mailing list, sorry for duplicate info, was not sure about adding patch here. As simple as possible I think. Don't call to fatal so that easter egg error text is clear of adornment. Exits using die(2) as fatal does. Doesn't trigger action if -k (continue on error) is specified. There's already a strcmp() call in remake.c (strncmp used for this patch). There's already a getuid() call in misc.c, I think for all platforms. Tested on linux, solaris and cygwin. $ ./make the cat some tea make: *** No rule to make target `the'. Stop. $ ./make me a sandwich What? Make it yourself. $ sudo ./make me a sandwich Okay. $ ./make -k me a sandwich make: *** No rule to make target `me'. make: *** No rule to make target `a'. make: *** No rule to make target `sandwich'. $ ./make -f Makefile.me me a sandwich make: Nothing to be done for `me'. make: *** No rule to make target `a'. Stop. $ ./make me a cup of tea please What? Make it yourself. (file #16091) _______________________________________________________ Additional Item Attachment: File name: make_me_some_tea.patch Size:0 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?23273> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make