1 # Copyright (C) 2003 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2, or (at your option)
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 package Automake
::RuleDef
;
21 use Automake
::ChannelDefs
;
22 use Automake
::ItemDef
;
25 use vars
'@ISA', '@EXPORT';
26 @ISA = qw
/Automake::ItemDef Exporter/;
27 @EXPORT = qw
(&RULE_AUTOMAKE
&RULE_USER
);
31 Automake::RuleDef - a class for rule definitions
35 use Automake::RuleDef;
36 use Automake::Location;
40 This class gathers data related to one Makefile-rule definition.
46 =item C<RULE_AUTOMAKE>, C<RULE_USER>
48 Possible owners for rules.
52 use constant RULE_AUTOMAKE
=> 0; # Rule defined by Automake.
53 use constant RULE_USER
=> 1; # Rule defined in the user's Makefile.am.
57 my ($class, $name, $comment, $location, $owner, $source) = @_;
59 my $self = Automake
::ItemDef
::new
($class, $comment, $location, $owner);
60 $self->{'source'} = $source;
61 $self->{'name'} = $name;
68 return $self->{'source'};
74 return $self->{'name'};
81 L<Automake::Rule>, L<Automake::ItemDef>.
87 ### Setup "GNU" style for perl-mode and cperl-mode.
89 ## perl-indent-level: 2
90 ## perl-continued-statement-offset: 2
91 ## perl-continued-brace-offset: 0
92 ## perl-brace-offset: 0
93 ## perl-brace-imaginary-offset: 0
94 ## perl-label-offset: -2
95 ## cperl-indent-level: 2
96 ## cperl-brace-offset: 0
97 ## cperl-continued-brace-offset: 0
98 ## cperl-label-offset: -2
99 ## cperl-extra-newline-before-brace: t
100 ## cperl-merge-trailing-else: nil
101 ## cperl-continued-statement-offset: 2