Mail Archives: djgpp/1998/03/13/14:00:11
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
- Raw text -