summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2005-12-12 21:36:45 +0000
committerrillig <rillig>2005-12-12 21:36:45 +0000
commit658faaae9192664e2e2e1fc7796ebeb9204a0543 (patch)
tree53fd4d5b57280726f598250f736cfe529065ae09 /pkgtools
parentb1c42374a2dfb389f1a812832691a1c1c38d22e5 (diff)
downloadpkgsrc-658faaae9192664e2e2e1fc7796ebeb9204a0543.tar.gz
+ ERROR: Other Makefiles must not be included. Use Makefile.common instead.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 0aa0beb218c..d5954b45d2a 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -11,7 +11,7 @@
# Freely redistributable. Absolutely no warranty.
#
# From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.435 2005/12/09 08:40:40 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.436 2005/12/12 21:36:45 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1599,6 +1599,7 @@ sub checkline_mk_shelltext($$) {
my ($line, $text) = @_;
my ($vartools, $state, $rest);
+ # Note: SCST is the abbreviation for [S]hell [C]ommand [ST]ate.
use constant SCST_START => 0;
use constant SCST_CONT => 1;
use constant SCST_INSTALL => 10;
@@ -2452,6 +2453,15 @@ sub checklines_mk($) {
$line->log_debug("includefile=${includefile}");
checkline_relative_path($line, $includefile);
+ if ($includefile =~ qr"../Makefile$") {
+ $line->log_error("Other Makefiles must not be included.");
+ $line->explain(
+ "If you want to include portions of another Makefile, extract",
+ "the common parts and put them into a Makefile.common. After",
+ "that, both this one and the other package should include the",
+ "Makefile.common.");
+ }
+
} elsif ($text =~ qr"^\.\s*(if|ifdef|ifndef|else|elif|endif|for|endfor|undef)(?:\s+([^\s#][^#]*?))?\s*(?:#.*)?$") {
my ($directive, $args) = ($1, $2);