Author: jhb Date: Tue Oct 30 18:20:34 2018 New Revision: 339926 URL: https://svnweb.freebsd.org/changeset/base/339926
Log: Only invoke 'ls' if the local modules directory exists. This avoids a spurious make warning if /usr/local/sys/modules doesn't exist. Submitted by: rgrimes Reported by: markj Modified: head/sys/conf/kern.post.mk Modified: head/sys/conf/kern.post.mk ============================================================================== --- head/sys/conf/kern.post.mk Tue Oct 30 17:57:40 2018 (r339925) +++ head/sys/conf/kern.post.mk Tue Oct 30 18:20:34 2018 (r339926) @@ -43,7 +43,7 @@ LOCAL_MODULES_DIR?= ${LOCALBASE}/sys/modules # Default to installing all modules installed by ports unless overridden # by the user. -.if !defined(LOCAL_MODULES) +.if !defined(LOCAL_MODULES) && exists($LOCAL_MODULES_DIR) LOCAL_MODULES!= ls ${LOCAL_MODULES_DIR} .endif .endif _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"