Re: Changes in make infrastructure

看板DFBSD_submit作者時間20年前 (2005/04/13 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/3 (看更多)
Max Okumoto wrote: > > Hi, > > I plan to commit a few patches that change the behavoir of make > sometime next week. And I would like some feed back before I do > this. This is work that harti has done. > > 1. Make the parser more strict for directives for example > .if, .else, .elif, .endif, etc. > Right now the parser accepts things like > .undefFOO > .elseif (other condition) > > the first case is equivilant to .undef FOO which isn't > bad, but the second case is really bad since you would > never know that it was treat the other condition as a > comment. > > The new parser requires a space after the directive token. > and warns about non-comments after .else and .endif > > This however, causes make to emit warnings for some of our > makefiles. patch-3.0 puts a # after the directives to > silence the warnings. (Its a standard diff since the unfied > diff is much bigger.) > [stuff deleted] I plan on commiting patch-3.0 later today since it doesn't change behavior, just makes it clear that the stuff following the directives are really comments. Max
文章代碼(AID): #12N5fv00 (DFBSD_submit)
文章代碼(AID): #12N5fv00 (DFBSD_submit)