From 4bc9493e7c4f26e536cab1903536b371a2613dc2 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 6 Dec 2009 08:59:19 +0000 Subject: [PATCH] Make `make cleanilinks' work in /sys/modules. cleanilinks wasn't listed in . Instead of adding it to /sys/modules/Makefile, we'd better just add it to directly, so we don't need to change files like /sys/modules/sound/Makefile as well. This means you can finally clean up all those dangling symlinks created by individual module compilation at once. --- share/mk/bsd.subdir.mk | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk index 4753f64f294..dc5af72ff17 100644 --- a/share/mk/bsd.subdir.mk +++ b/share/mk/bsd.subdir.mk @@ -24,9 +24,9 @@ # This is a variant of install, which will # put the stuff into the right "distribution". # -# afterinstall, all, all-man, beforeinstall, checkdpadd, -# clean, cleandepend, cleandir, depend, install, lint, maninstall, -# manlint, obj, objlink, realinstall, regress, tags +# afterinstall, all, all-man, beforeinstall, checkdpadd, clean, +# cleandepend, cleandir, cleanilinks depend, install, lint, +# maninstall, manlint, obj, objlink, realinstall, regress, tags # .include @@ -66,9 +66,8 @@ ${SUBDIR}: .PHONY ${MAKE} all .for __target in all all-man checkdpadd clean cleandepend cleandir \ - depend distribute lint maninstall manlint \ - obj objlink realinstall regress tags \ - ${SUBDIR_TARGETS} + cleanilinks depend distribute lint maninstall manlint obj objlink \ + realinstall regress tags ${SUBDIR_TARGETS} ${__target}: _SUBDIR .endfor