1 # Copyright (C) 2003, 2006 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 3, 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, see <http://www.gnu.org/licenses/>.
16 package Automake
::ItemDef
;
22 Automake::ItemDef - base class for Automake::VarDef and Automake::RuleDef
30 =item C<my $def = Automake::new ($comment, $location, $owner)>
32 Create a new Makefile-item definition.
34 C<$comment> is any comment preceding the definition. (Because
35 Automake reorders items in the output, it also tries to carry comments
38 C<$location> is the place where the definition occurred, it should be
39 an instance of L<Automake::Location>.
41 C<$owner> specifies who owns the rule.
47 my ($class, $comment, $location, $owner) = @_;
51 location
=> $location,
59 =item C<$def-E<gt>comment>
61 =item C<$def-E<gt>location>
63 =item C<$def-E<gt>owner>
65 Accessors to the various constituents of an C<ItemDef>. See the
66 documentation of C<new>'s arguments for a description of these.
73 return $self->{'comment'};
79 return $self->{'location'};
85 return $self->{'owner'};
90 L<Automake::VarDef>, and L<Automake::RuleDef>.
96 ### Setup "GNU" style for perl-mode and cperl-mode.
98 ## perl-indent-level: 2
99 ## perl-continued-statement-offset: 2
100 ## perl-continued-brace-offset: 0
101 ## perl-brace-offset: 0
102 ## perl-brace-imaginary-offset: 0
103 ## perl-label-offset: -2
104 ## cperl-indent-level: 2
105 ## cperl-brace-offset: 0
106 ## cperl-continued-brace-offset: 0
107 ## cperl-label-offset: -2
108 ## cperl-extra-newline-before-brace: t
109 ## cperl-merge-trailing-else: nil
110 ## cperl-continued-statement-offset: 2