svn commit: r330427 - stable/11/sys/conf

Bryan Drewery bdrewery at FreeBSD.org
Sun Mar 4 23:36:50 UTC 2018


Author: bdrewery
Date: Sun Mar  4 23:36:49 2018
New Revision: 330427
URL: https://svnweb.freebsd.org/changeset/base/330427

Log:
  MFC r325776:
  
    Rework r325568 so all 'make LINT' targets work.

Modified:
  stable/11/sys/conf/makeLINT.mk
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/conf/makeLINT.mk
==============================================================================
--- stable/11/sys/conf/makeLINT.mk	Sun Mar  4 23:35:35 2018	(r330426)
+++ stable/11/sys/conf/makeLINT.mk	Sun Mar  4 23:36:49 2018	(r330427)
@@ -1,5 +1,8 @@
 # $FreeBSD$
 
+# The LINT files need to end up in the kernel source directory.
+.OBJDIR: ${.CURDIR}
+
 all:
 	@echo "make LINT only"
 
@@ -9,9 +12,10 @@ clean:
 	rm -f LINT-VIMAGE LINT-NOINET LINT-NOINET6 LINT-NOIP
 .endif
 
-NOTES=	../../conf/NOTES NOTES
-LINT: ${NOTES} ../../conf/makeLINT.sed
-	cat ${NOTES} | sed -E -n -f ../../conf/makeLINT.sed > ${.TARGET}
+NOTES=	${.CURDIR}/../../conf/NOTES ${.CURDIR}/NOTES
+MAKELINT_SED= ${.CURDIR}/../../conf/makeLINT.sed
+LINT: ${NOTES} ${MAKELINT_SED}
+	cat ${NOTES} | sed -E -n -f ${MAKELINT_SED} > ${.TARGET}
 .if ${TARGET} == "amd64" || ${TARGET} == "i386"
 	echo "include ${.TARGET}"	>  ${.TARGET}-VIMAGE
 	echo "ident ${.TARGET}-VIMAGE"	>> ${.TARGET}-VIMAGE


More information about the svn-src-all mailing list