Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2012 04:55:04 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242072 - head/sys/conf
Message-ID:  <201210250455.q9P4t4GD077545@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Thu Oct 25 04:55:04 2012
New Revision: 242072
URL: http://svn.freebsd.org/changeset/base/242072

Log:
  Remove the links: target.  It too is homelessly outdated since it
  relies on the outdated defines list.  It likely hasn't been useful in
  15 years, and certainly not in the last decade.

Modified:
  head/sys/conf/kern.post.mk

Modified: head/sys/conf/kern.post.mk
==============================================================================
--- head/sys/conf/kern.post.mk	Thu Oct 25 04:46:58 2012	(r242071)
+++ head/sys/conf/kern.post.mk	Thu Oct 25 04:55:04 2012	(r242072)
@@ -154,7 +154,7 @@ ${mfile:T:S/.m$/.h/}: ${mfile}
 kernel-clean:
 	rm -f *.o *.so *.So *.ko *.s eddep errs \
 	    ${FULLKERNEL} ${KERNEL_KO} ${KERNEL_KO}.symbols \
-	    linterrs makelinks tags vers.c \
+	    linterrs tags vers.c \
 	    vnode_if.c vnode_if.h vnode_if_newproto.h vnode_if_typedef.h \
 	    ${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \
 	    ${CLEAN}
@@ -237,14 +237,6 @@ ${_ILINKS}:
 kernel-cleandepend:
 	rm -f .depend ${_ILINKS}
 
-links:
-	egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
-	    sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
-	${MAKE} -V CFILES | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
-	    sort -u | comm -23 - dontlink | \
-	    sed 's,../.*/\(.*.o\),rm -f \1;ln -s ../GENERIC/\1 \1,' > makelinks
-	sh makelinks; rm -f dontlink
-
 kernel-tags:
 	@[ -f .depend ] || { echo "you must make depend first"; exit 1; }
 	sh $S/conf/systags.sh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210250455.q9P4t4GD077545>