summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2008-02-03 11:34:56 +0000
committerdes <des@FreeBSD.org>2008-02-03 11:34:56 +0000
commit0e657b23ab26ffd1c8ec08fa31672c4397437a0b (patch)
treefa8aef73c99b19c411159141728dce4ce01999bc /usr.bin/kdump
parentb198f5f802788a72ebf2a1d063223debac1747e7 (diff)
downloadFreeBSD-src-0e657b23ab26ffd1c8ec08fa31672c4397437a0b.zip
FreeBSD-src-0e657b23ab26ffd1c8ec08fa31672c4397437a0b.tar.gz
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
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/kdump/Makefile b/usr.bin/kdump/Makefile
index 2ca8561..c0c74e3 100644
--- a/usr.bin/kdump/Makefile
+++ b/usr.bin/kdump/Makefile
@@ -7,7 +7,8 @@ PROG= kdump
SRCS= kdump.c ioctl.c kdump_subr.c subr.c
CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../..
-CLEANFILES= ioctl.c kdump_subr.c
+CLEANDEPFILES= ioctl.c kdump_subr.c
+CLEANFILES= ${CLEANDEPFILES}
ioctl.c: mkioctls
sh ${.CURDIR}/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
OpenPOWER on IntegriCloud