- builtin.mk files must not be included directly.

This commit is contained in:
rillig 2006-02-24 15:05:10 +00:00
parent 25e74f91b5
commit 174cdf8c53

View file

@ -1,5 +1,5 @@
#! @PERL@ #! @PERL@
# $NetBSD: pkglint.pl,v 1.531 2006/02/24 14:24:42 rillig Exp $ # $NetBSD: pkglint.pl,v 1.532 2006/02/24 15:05:10 rillig Exp $
# #
# pkglint - static analyzer and checker for pkgsrc packages # pkglint - static analyzer and checker for pkgsrc packages
@ -3631,8 +3631,9 @@ sub checklines_mk($) {
if ($includefile =~ qr"/x11-links/buildlink3\.mk$") { if ($includefile =~ qr"/x11-links/buildlink3\.mk$") {
$line->log_error("${includefile} must not be included directly. Include \"../../mk/x11.buildlink3.mk\" instead."); $line->log_error("${includefile} must not be included directly. Include \"../../mk/x11.buildlink3.mk\" instead.");
} }
if ($includefile =~ qr"/gettext-lib/builtin\.mk$") { if ($includefile =~ qr"(.*)/builtin\.mk$") {
$line->log_error("${includefile} must not be included directly. Include \"../../devel/gettext-lib/buildlink3.mk\" instead."); my ($dir) = ($1);
$line->log_error("${includefile} must not be included directly. Include \"${dir}/buildlink3.mk\" instead.");
} }
} elsif ($text =~ regex_mk_cond) { } elsif ($text =~ regex_mk_cond) {