diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-02-03 11:34:56 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2008-02-03 11:34:56 +0000 |
commit | 0d7cc1d0eb05d8f762e642dc4ac202b977e818ad (patch) | |
tree | fa8aef73c99b19c411159141728dce4ce01999bc /share/mk/bsd.dep.mk | |
parent | 72d1e737b5e63e4af94dbda4e9b88266ff15170a (diff) | |
download | src-0d7cc1d0eb05d8f762e642dc4ac202b977e818ad.tar.gz src-0d7cc1d0eb05d8f762e642dc4ac202b977e818ad.zip |
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
Notes
Notes:
svn path=/head/; revision=175937
Diffstat (limited to 'share/mk/bsd.dep.mk')
-rw-r--r-- | share/mk/bsd.dep.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index cdcadb034b44..ff954ecfeac8 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -5,6 +5,8 @@ # # +++ variables +++ # +# CLEANDEPFILES Additional files to clean when doing cleandepend +# # CTAGS A tags file generation program [gtags] # # CTAGSFLAGS Options for ctags(1) [not set] @@ -182,6 +184,9 @@ cleandepend: .if defined(HTML) rm -rf HTML .endif +.if defined(CLEANDEPFILES) + rm -f ${CLEANDEPFILES} +.endif .endif .endif .endif |