From owner-cvs-all@FreeBSD.ORG Sun Feb 3 11:34:56 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96BEB16A417; Sun, 3 Feb 2008 11:34:56 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 85DCD13C46E; Sun, 3 Feb 2008 11:34:56 +0000 (UTC) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m13BYuIj070368; Sun, 3 Feb 2008 11:34:56 GMT (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m13BYuTl070367; Sun, 3 Feb 2008 11:34:56 GMT (envelope-from des) Message-Id: <200802031134.m13BYuTl070367@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Sun, 3 Feb 2008 11:34:56 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/share/mk bsd.dep.mk src/usr.bin/kdump Makefile src/usr.bin/truss Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Feb 2008 11:34:56 -0000 des 2008-02-03 11:34:56 UTC FreeBSD src repository Modified files: share/mk bsd.dep.mk usr.bin/kdump Makefile usr.bin/truss Makefile Log: Normally, when a header file is removed from the build (as i4b headers were recently), a simple 'make cleandepend; make depend' is sufficient to keep the tree buildable after a cvs update when doing incremental builds. However, kdump and truss use a script which searches for header files that define ioctls, and generates C code that includes them. This script will usually not need updating when a header file is removed, so the normal dependency mechanism will not realize that it needs to be re-run. One is therefore left with code that references dead files but will only be removed by a full 'make clean', which defeats the purpose of incremental builds. To work around this, modify the cleandepend target in bsd.dep.mk to also remove any files listed in a new variable named CLEANDEPFILES, and modify kdump's and truss's Makefiles accordingly. MFC after: 2 weeks Revision Changes Path 1.49 +5 -0 src/share/mk/bsd.dep.mk 1.13 +2 -1 src/usr.bin/kdump/Makefile 1.23 +3 -2 src/usr.bin/truss/Makefile