help-make
[Top][All Lists]
Advanced

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

RE: GNU make $(error )


From: BShah
Subject: RE: GNU make $(error )
Date: Tue, 20 Aug 2002 16:44:25 +0100

I don't think it would be that hard - on Windows anyway, I believe a plug-in
a popular editor should be possible... Might have a go myself!

-----Original Message-----
From: address@hidden [mailto:address@hidden
Sent: 20 August 2002 16:40
To: address@hidden
Cc: address@hidden
Subject: RE: GNU make $(error )


%% address@hidden writes:

  b> All I can say is DOH!  I wish I could find a makefile aware
  b> editor... It would be nice to avoid trips like this.

Emacs.

Emacs has a makefile mode, and it will warn you about "suspicious
lines", highlight variables, etc.

Unfortunately it would not have caught this problem, because it doesn't
know about all make syntax, just line-by-line syntax (so it doesn't
notice that the previous line was not a target).  Having an editor with
this level of sophistication would be extremely difficult, because make
syntax is not easily parsed with simple, BNF type rules.

I also argued strongly that the font-locking in Emacs makefile-mode
should fontify all initial TAB characters, not just lines with a TAB but
no subsequent text.  If that had been done you would probably have
noticed the problem earlier.  But, my argument was not accepted :(.

-- 
----------------------------------------------------------------------------
---
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist


_______________________________________________
Help-make mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-make




reply via email to

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