Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: mheumann AT post DOT uni-bielefeld DOT de (Manni Heumann), djgpp AT delorie DOT com Date: Fri, 13 Mar 1998 16:00:04 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: The miracle of MAKE In-reply-to: Precedence: bulk mheumann AT post DOT uni-bielefeld DOT de (Manni Heumann) wrote: > I know, I am courios, but: How the hell does make know when to rebuild a file > an when it is up to date? > It must have some kind of database somewhere and I really would like to know > where! No magic, no database (at least in no in normal cases): Make uses the time stamp of the files, you define the dependencies in the makefile and make just takes a look to the files to see if some action is needed. If you modify one of your source files the time stamp is updated and hence it indacates a newer value than your .o file then make compiles the .c file into a .o file, but now the .o file have a newer date (newer than the exe) and hence make creates the .exe. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013