Make NOCLEAN an error instead of a warning

The warning was added in r289728 (over four years ago) and at that time
NO_CLEAN was already the correct spelling for over a decade.

Make NOCLEAN an error as the next step to removing these backward
compatibility shims.
This commit is contained in:
Ed Maste 2019-12-11 14:54:29 +00:00
parent 6d204a6a0e
commit c590fd27de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355609

View File

@ -458,8 +458,7 @@ SUBDIR+=etc
.endif # !empty(SUBDIR_OVERRIDE)
.if defined(NOCLEAN)
.warning NOCLEAN option is deprecated. Use NO_CLEAN instead.
NO_CLEAN= ${NOCLEAN}
.error NOCLEAN option is deprecated. Use NO_CLEAN instead.
.endif
.if defined(NO_CLEANDIR)
CLEANDIR= clean cleandepend