Re: "/sys/conf/kmod.mk", line 111: Malformed conditional (${MK_CLANG_IS_CC}

From: Mark Linimon <linimon_at_lonesome.com>
Date: Tue, 17 Apr 2012 11:04:06 -0500
On Tue, Apr 17, 2012 at 11:49:44AM +0200, Dimitry Andric wrote:
> It would hopefully error out.  If you look in /usr/share/mk/bsd.kmod.mk,
> you will see this at the bottom:
> 
>   .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
>       !exists(${SYSDIR}/conf/kmod.mk)
>   .error Unable to locate the kernel source tree. Set SYSDIR to override.
>   .endif
> 
> So, setting SYSDIR to the correct directory is also a possible solution.

Note that in ports-land we discourage .error in the ports infrastructure
as it can make it impossible to query metadata (e.g. make index,
make -V maintainer, etc.)  So this usage should stay in src.

mcl
Received on Tue Apr 17 2012 - 14:04:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:26 UTC