[Top][All Lists]

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

Makefile line number bug?

From: thutt
Subject: Makefile line number bug?
Date: Thu, 12 Nov 2015 05:56:59 -0800

Jonny Grant writes:
 > Hello
 > Is this a bug? line numbers are output as (2), but actually they are
 > different. Note that also the "Hello" is output in the wrong order.. I
 > presume this may be the OS rather than GNU Make.
 > Please keep my email address in replies as I am not a member of this list.
 > Regards, Jonny
 > $ make -f makefile.mak
 > makefile.mak:2: One
 > makefile.mak:2: Two
 > makefile.mak:2: Three
 > Hello
 > $ make --version
 > GNU Make 4.1
 > Built for i686-pc-cygwin
 > Copyright (C) 1988-2014 Free Software Foundation, Inc.
 > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 > This is free software: you are free to change and redistribute it.
 > There is NO WARRANTY, to the extent permitted by law.
 > makefile.mak (not sure if the TABs have been lost)
 > all:
 > @echo Hello
 > $(warning One)
 > $(warning Two)
 > $(warning Three)

 Tabs have been lost.

 If the 'warning' lines are at the beginning of the line, make behaves
 with the proper line numbers.

 If there are tabs before each 'warning', then you get the result you

 A curious result, to be sure.

p4 help commandments

reply via email to

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