svn commit: r300799 - in head/sys: conf modules
Bryan Drewery
bdrewery at FreeBSD.org
Thu May 26 23:20:16 UTC 2016
Author: bdrewery
Date: Thu May 26 23:20:14 2016
New Revision: 300799
URL: https://svnweb.freebsd.org/changeset/base/300799
Log:
Add some missing .PHONY.
These are relevant for WITH_META_MODE to ensure they are
always reran and don't generate a .meta file.
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sys/conf/kern.post.mk
head/sys/conf/kmod.mk
head/sys/modules/Makefile
Modified: head/sys/conf/kern.post.mk
==============================================================================
--- head/sys/conf/kern.post.mk Thu May 26 23:20:10 2016 (r300798)
+++ head/sys/conf/kern.post.mk Thu May 26 23:20:14 2016 (r300799)
@@ -295,7 +295,7 @@ kernel-tags:
@[ -f .depend ] || { echo "you must make depend first"; exit 1; }
sh $S/conf/systags.sh
-kernel-install:
+kernel-install: .PHONY
@if [ ! -f ${KERNEL_KO} ] ; then \
echo "You must build a kernel first." ; \
exit 1 ; \
Modified: head/sys/conf/kmod.mk
==============================================================================
--- head/sys/conf/kmod.mk Thu May 26 23:20:10 2016 (r300798)
+++ head/sys/conf/kmod.mk Thu May 26 23:20:14 2016 (r300799)
@@ -306,7 +306,7 @@ _INSTALLFLAGS:= ${_INSTALLFLAGS${ie}}
KERN_DEBUGDIR?= ${DEBUGDIR}
realinstall: _kmodinstall
.ORDER: beforeinstall _kmodinstall
-_kmodinstall:
+_kmodinstall: .PHONY
${INSTALL} -T release -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}/
.if defined(DEBUG_FLAGS) && !defined(INSTALL_NODEBUG) && ${MK_KERNEL_SYMBOLS} != "no"
@@ -320,7 +320,7 @@ _kmodinstall:
afterinstall: _kldxref
.ORDER: realinstall _kldxref
.ORDER: _installlinks _kldxref
-_kldxref:
+_kldxref: .PHONY
@if type kldxref >/dev/null 2>&1; then \
${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
kldxref ${DESTDIR}${KMODDIR}; \
@@ -331,17 +331,17 @@ _kldxref:
.endif # !target(install)
.if !target(load)
-load: ${PROG}
+load: ${PROG} .PHONY
${KMODLOAD} -v ${.OBJDIR}/${PROG}
.endif
.if !target(unload)
-unload:
+unload: .PHONY
if ${KMODISLOADED} ${PROG} ; then ${KMODUNLOAD} -v ${PROG} ; fi
.endif
.if !target(reload)
-reload: unload load
+reload: unload load .PHONY
.endif
.if defined(KERNBUILDDIR)
Modified: head/sys/modules/Makefile
==============================================================================
--- head/sys/modules/Makefile Thu May 26 23:20:10 2016 (r300798)
+++ head/sys/modules/Makefile Thu May 26 23:20:14 2016 (r300799)
@@ -773,7 +773,7 @@ SUBDIR:= ${SUBDIR:N${reject}}
# Calling kldxref(8) for each module is expensive.
.if !defined(NO_XREF)
.MAKEFLAGS+= -DNO_XREF
-afterinstall:
+afterinstall: .PHONY
@if type kldxref >/dev/null 2>&1; then \
${ECHO} kldxref ${DESTDIR}${KMODDIR}; \
kldxref ${DESTDIR}${KMODDIR}; \
More information about the svn-src-all
mailing list