Message-Id: <3.0.16.19971012225334.34c7fd88@hem1.passagen.se> Date: Sun, 12 Oct 1997 23:10:24 -0400 To: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) From: Peter Palotas Subject: Re: How to create Makefiles ???? Cc: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Precedence: bulk >When checking that (target) is up to date, the (command)s are run iff at >least one (dependency) has a more recent timestamp than (target). For C >programs, you want this to be the case whenever a #included header file or >the C source file for a particular module has modified since that module >was last rebuilt. Thanx for pointing this out. I forgot to put in the .c files there! >Note also that Make only tries to make the first target in the file (`all' >in your case). In doing so, it would try to check that runme.exe is up to >date; runme.exe may not exist, in which case Make assumes that it needs >rebuilding, but you haven't told it how (there's no rule with the target >`runme.exe'). Yup, you're right again, and I was wrong. I'm terribly sorry if this lead to any inconvenience for someone! -- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se -- ***************************************************** * A brief description of DJGPP: * * NEVER BEFORE HAS SO FEW DONE SO MUCH FOR SO MANY! * *****************************************************