aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.sanity.mk
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2018-09-10 13:16:24 +0000
committerMathieu Arnold <mat@FreeBSD.org>2018-09-10 13:16:24 +0000
commit0ac9de909b7ab73d004a6de6ac750cf9377fa8e3 (patch)
tree251fcf270346034da0bac2a996bf169918a1f160 /Mk/bsd.sanity.mk
parentcde701195048c7f6add2633bb17dddadc266443b (diff)
downloadports-0ac9de909b7ab73d004a6de6ac750cf9377fa8e3.tar.gz
ports-0ac9de909b7ab73d004a6de6ac750cf9377fa8e3.zip
Add a DEV_ERROR if PORTDOCS/PORTEXAMPLES are set and DOCS/EXAMPLES
options are not defined. PR: 230864 Submitted by: mat exp-runs by: antoine Differential Revision: https://reviews.freebsd.org/D13651
Notes
Notes: svn path=/head/; revision=479409
Diffstat (limited to 'Mk/bsd.sanity.mk')
-rw-r--r--Mk/bsd.sanity.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mk/bsd.sanity.mk b/Mk/bsd.sanity.mk
index b8da6ff6cc59..3851a4e1ab22 100644
--- a/Mk/bsd.sanity.mk
+++ b/Mk/bsd.sanity.mk
@@ -162,6 +162,12 @@ DEV_ERROR+= "USE_TCL and USE_TK are no longer supported, please use USES=tcl or
DEV_ERROR+= "USE_FPC=yes is no longer supported, please use USES=fpc"
.endif
+.for _type in EXAMPLES DOCS
+. if defined(PORT${_type}) && empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type})
+DEV_ERROR+= "PORT${_type} does not do anything unless the ${_type} option is present."
+. endif
+.endfor
+
SANITY_UNSUPPORTED= USE_OPENAL USE_FAM USE_MAKESELF USE_ZIP USE_LHA USE_CMAKE \
USE_READLINE USE_ICONV PERL_CONFIGURE PERL_MODBUILD \
USE_PERL5_BUILD USE_PERL5_RUN USE_DISPLAY USE_FUSE \