Path: utzoo!mnetor!uunet!husc6!rutgers!ames!amdcad!sun!plx!dlb!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.c Subject: RE: Makefile Maker Message-ID: <189@goofy.megatest.UUCP> Date: 26 Dec 87 01:08:44 GMT Organization: Megatest Corporation, San Jose, Ca Lines: 49 Keywords: make in article <190@fxgrp.UUCP>, ljz@fxgrp.UUCP (Lloyd Zusman, Master Byte Software) says: > > In article <176@goofy.megatest.UUCP> djones@megatest.UUCP (Dave Jones) writes: > >>The problem with make -- well ONE of the problems with make -- is that it >>requires the user to specify the dependencies. What you really want >>is something that keeps up with the dependencies automatically as they >>change. >> ... >>We will need a program which removes dependency spec's from a Makefile, >>and one which creates new dependency spec's. >> ... > > There already is a program that lets you do this. It is called "mkmf" > and I have mentioned it in an earlier posting. I have determined that > it indeed is in the public domain. [...] > This program takes a makefile as input and produces a new one as > output. It automatically recalculates all the dependencies every time > it is run ... Com'on guys!! Read the posting! The little program and Makefile paradigm I posted automatically recalculates the dependancies on a file-by-file basis, ONLY when a file is remade. "mkmf", as you described it, goes through ALL files every time ONE changes. That was the point. I don't make it out to be profound, but when you are working on one file in a large archive, it is fast and foolproof. The "depend" which somebody posted earlier also reads through all files, and requires manual intervention. That's enough "Bah-Humbug". Merry Christmas. X X X X X X X X X X X X