From: nobu.nakada@... Date: 2002-04-12T13:45:34+09:00 Subject: [ruby-dev:16873] Re: Makefiles dependency なかだです。 At Fri, 12 Apr 2002 13:30:18 +0900, WATANABE Hirofumi wrote: > :Makefile.inを変更したりconfigureをやり直したりしても、自動的に > :Makefileに反映されないので、ルールを入れておいたほうがいいと思 > :うんですが、なにか不都合あるんでしたっけ。 > > Makefileを更新しても反映されるのは次回からだから。 > makeは最初にMakefileを読むだけで、変更されたからといってまた > 読むということはしません。 > #いやさらにmakeの中でmakeを実行するというのはありかもしれな > #いけど。 たしかにそれが厄介なところなんですが。GNU makeは読み直すようで すけど、全部が全部そうでもないだろうし。というか、他のmakeって 自動的にMakefile更新しようとしましたっけ。 | How Makefiles Are Remade | ======================== | | Sometimes makefiles can be remade from other files, such as RCS or | SCCS files. If a makefile can be remade from other files, you probably | want `make' to get an up-to-date version of the makefile to read in. | | To this end, after reading in all makefiles, `make' will consider | each as a goal target and attempt to update it. If a makefile has a | rule which says how to update it (found either in that very makefile or | in another one) or if an implicit rule applies to it (*note Using | Implicit Rules: Implicit Rules.), it will be updated if necessary. | After all makefiles have been checked, if any have actually been | changed, `make' starts with a clean slate and reads all the makefiles | over again. (It will also attempt to update each of them over again, | but normally this will not change them again, since they are already up | to date.) > 個人的には勝手に実行するんじゃなくて、メッセージ吐いてエラー > になってくれたほうがいいんですが、自動化してる人にとっては鬱 > 陶しいかなあ。 こう? Makefile: $(srcdir)/Makefile.in config.status $(SHELL) ./config.status @echo Makefile is remade, restart. @false -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦