Update the required version of gettext to get new bugfix macros.
[make.git] / rule.h
1 /* Definitions for using pattern rules in GNU Make.
2 Copyright (C) 1988-2012 Free Software Foundation, Inc.
3 This file is part of GNU Make.
5 GNU Make is free software; you can redistribute it and/or modify it under the
6 terms of the GNU General Public License as published by the Free Software
7 Foundation; either version 3 of the License, or (at your option) any later
8 version.
10 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License along with
15 this program. If not, see <http://www.gnu.org/licenses/>. */
18 /* Structure used for pattern (implicit) rules. */
20 struct rule
22 struct rule *next;
23 const char **targets; /* Targets of the rule. */
24 unsigned int *lens; /* Lengths of each target. */
25 const char **suffixes; /* Suffixes (after '%') of each target. */
26 struct dep *deps; /* Dependencies of the rule. */
27 struct commands *cmds; /* Commands to execute. */
28 unsigned short num; /* Number of targets. */
29 char terminal; /* If terminal (double-colon). */
30 char in_use; /* If in use by a parent pattern_search. */
33 /* For calling install_pattern_rule. */
34 struct pspec
36 char *target, *dep, *commands;
40 extern struct rule *pattern_rules;
41 extern struct rule *last_pattern_rule;
42 extern unsigned int num_pattern_rules;
44 extern unsigned int max_pattern_deps;
45 extern unsigned int max_pattern_targets;
46 extern unsigned int max_pattern_dep_length;
48 extern struct file *suffix_file;
49 extern unsigned int maxsuffix;
52 void count_implicit_rule_limits (void);
53 void convert_to_pattern (void);
54 void install_pattern_rule (struct pspec *p, int terminal);
55 void create_pattern_rule (const char **targets, const char **target_percents,
56 unsigned int num, int terminal, struct dep *deps,
57 struct commands *commands, int override);