bug-make
[Top][All Lists]
Advanced

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

Re: Adding line numbers to output for "No rule to make target"


From: Jonny Grant
Subject: Re: Adding line numbers to output for "No rule to make target"
Date: Wed, 25 Nov 2015 22:55:12 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0



On 25/11/15 13:59, address@hidden wrote:
Jonny Grant writes:
  > Hello
  >
  > Could line numbers be added to output for the case where it says "No
  > rule to make target" please?
  >
  > Example below. GNU Make 4.1
  >
  > I'm not on this list, so please include my email address is any
  > replies Regards, Jonny

  >
  >
  > makefile.mak
  >
  > %.o : %.d
  >
  > all: test.o
  >     echo processing
  >
  >
  > ^Sorry TAB has been lost by my email client
  >
  > $ make
  > make: *** No rule to make target 'test.o', needed by 'all'.  Stop.
  >
  >
  > Could line number (4) be added to the message?
  >
  > eg
  > $ make
  > make: *** makefile.mak:4 No rule to make target 'test.o', needed by
  > 'all'.  Stop.

  What should be output if the following is typed?

    make gungla


Perhaps just the regular because its not got a specific line number:

$ make gungla
make: *** No rule to make target 'gungla'. Stop.


What do think?
Regards, Jonny



reply via email to

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