This commit was manufactured by cvs2svn to create tag
[kbuild-mirror.git] / src / gmake / commands.h
blobedec91032c13a40a29eff2a0528b5cad4ea7876a
1 /* Definition of data structures describing shell commands for GNU Make.
2 Copyright (C) 1988, 1989, 1991, 1993 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
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
10 GNU Make is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNU Make; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 /* Structure that gives the commands to make a file
21 and information about where these commands came from. */
23 struct commands
25 struct floc fileinfo; /* Where commands were defined. */
26 char *commands; /* Commands text. */
27 unsigned int ncommand_lines;/* Number of command lines. */
28 char **command_lines; /* Commands chopped up into lines. */
29 char *lines_flags; /* One set of flag bits for each line. */
30 int any_recurse; /* Nonzero if any `lines_recurse' elt has */
31 /* the COMMANDS_RECURSE bit set. */
34 /* Bits in `lines_flags'. */
35 #define COMMANDS_RECURSE 1 /* Recurses: + or $(MAKE). */
36 #define COMMANDS_SILENT 2 /* Silent: @. */
37 #define COMMANDS_NOERROR 4 /* No errors: -. */
39 extern void execute_file_commands PARAMS ((struct file *file));
40 extern void print_commands PARAMS ((struct commands *cmds));
41 extern void delete_child_targets PARAMS ((struct child *child));
42 extern void chop_commands PARAMS ((struct commands *cmds));