HomeFreeBSD

Add a guard for broken SUBDIR.${MK_FOO} use

Description

Add a guard for broken SUBDIR.${MK_FOO} use

Check for the variable SUBDIR. and error as it usually means someone
forgot to include src.opts.mk.

This guard from CheriBSD found the bugs in r367655 and r367728.

Reviewed by: bdrewery, arichardson
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D27211

Details

Provenance
brooksAuthored on
Reviewer
bdrewery
Differential Revision
D27211: Add a guard for broken SUBDIR.${MK_FOO} use
Parents
rS367734: bsdiff: fix off-by-one error
Branches
Unknown
Tags
Unknown