Formerly make.texinfo.~107~
[make.git] / rule.h
blob65ba3ab4f1ac8b5b0a1fb909ea50617d28520609
1 /* Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
2 This file is part of GNU Make.
4 GNU Make is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
9 GNU Make is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with GNU Make; see the file COPYING. If not, write to
16 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
18 /* Structure used for pattern rules. */
20 struct rule
22 struct rule *next;
23 char **targets; /* Targets of the rule. */
24 unsigned int *lens; /* Lengths of each target. */
25 char **suffixes; /* Suffixes (after `%') of each target. */
26 struct dep *deps; /* Dependencies of the rule. */
27 struct commands *cmds; /* Commands to execute. */
28 char terminal; /* If terminal (double-colon). */
29 char in_use; /* If in use by a parent pattern_search. */
32 /* For calling install_pattern_rule. */
33 struct pspec
35 char *target, *dep, *commands;
39 extern struct rule *pattern_rules;
40 extern struct rule *last_pattern_rule;
41 extern unsigned int num_pattern_rules;
43 extern unsigned int max_pattern_deps;
44 extern unsigned int max_pattern_targets;
45 extern unsigned int max_pattern_dep_length;
47 extern struct file *suffix_file;
48 extern unsigned int maxsuffix;
51 extern void install_pattern_rule ();
52 int new_pattern_rule ();