delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/19/09:14:30

Message-Id: <200004191406.JAA04929@darwin.sfbr.org>
Date: Wed, 19 Apr 2000 09:06:56 -0500 (CDT)
From: Jeff Williams <jeffw AT darwin DOT sfbr DOT org>
Subject: OT: `make clean' wants to rebuild `.d' files
To: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.4 SunOS 5.7 sun4u sparc
Reply-To: djgpp AT delorie DOT com

As described in the info file for `make', I am using a pattern rule to
generate `.d' files for each C source file, then including the `.d'
files, as follows:

depends=$(sources:.c=.d)
include $(depends)

But now `make clean' will insist on remaking any stale `.d' files
before deleting anything (including the `.d' files!).  And `make info'
will remake stale `.d' files which have nothing to do with the `.txi'
sources!  This is really annoying; I understand why this is happening,
but is there a more efficient way to include the `.d' files?

TIA---jtw

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019