Formerly make.texinfo.~117~
[make.git] / commands.h
blobd99bec8f742d15c5cb1696ea3b6f4f9cfd18ba65
1 /* Copyright (C) 1988, 1989, 1991, 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 that gives the commands to make a file
19 and information about where these commands came from. */
21 struct commands
23 char *filename; /* File that contains commands. */
24 unsigned int lineno; /* Line number in file. */
25 char *commands; /* Commands text. */
26 unsigned int ncommand_lines;/* Number of command lines. */
27 char **command_lines; /* Commands chopped up into lines. */
28 char *lines_flags; /* One set of flag bits for each line. */
29 int any_recurse; /* Nonzero if any `lines_recurse' elt has */
30 /* the COMMANDS_RECURSE bit set. */
33 /* Bits in `lines_flags'. */
34 #define COMMANDS_RECURSE 1 /* Recurses: + or $(MAKE). */
35 #define COMMANDS_SILENT 2 /* Silent: @. */
36 #define COMMANDS_NOERROR 4 /* No errors: -. */
38 extern void execute_file_commands ();
39 extern void print_commands ();
40 extern void delete_child_targets ();
41 extern void chop_commands ();