summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-08-08 00:11:19 +0000
committerPaul Smith <psmith@gnu.org>2002-08-08 00:11:19 +0000
commitf2ceb0d68aa780e57641e50d972fac3b6e70bd58 (patch)
tree73853f27fe9a08b2ba2938057f1f3ccc51597d06 /main.c
parentbccb277dda1a4dcc6729824a7c9d544086f147c3 (diff)
downloadgunmake-f2ceb0d68aa780e57641e50d972fac3b6e70bd58.tar.gz
Incorporate some VMS fixes.
Add -B option docs. Add .VARIABLES variable. Add a few new tests. Add a new translation: Swedish
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/main.c b/main.c
index 10d6124..03d6f40 100644
--- a/main.c
+++ b/main.c
@@ -252,6 +252,11 @@ static int print_usage_flag = 0;
for each reference to an undefined variable. */
int warn_undefined_variables_flag;
+
+/* If nonzero, always build all targets, regardless of whether
+ they appear out of date or not. */
+
+int always_make_flag = 0;
/* The table of command switches. */
@@ -260,6 +265,9 @@ static const struct command_switch switches[] =
{ 'b', ignore, 0, 0, 0, 0, 0, 0,
0, 0,
N_("Ignored for compatibility") },
+ { 'B', flag, (char *) &always_make_flag, 1, 1, 0, 0, 0,
+ "always-make", 0,
+ N_("Unconditionally make all targets") },
{ 'C', string, (char *) &directories, 0, 0, 0, 0, 0,
"directory", N_("DIRECTORY"),
N_("Change to DIRECTORY before doing anything") },
@@ -989,8 +997,8 @@ int main (int argc, char ** argv)
#endif
/* Initialize the special variables. */
- define_variable (".VARIABLES", 10, "", o_default, 0);
- define_variable (".TARGETS", 8, "", o_default, 0);
+ define_variable (".VARIABLES", 10, "", o_default, 0)->special = 1;
+ /* define_variable (".TARGETS", 8, "", o_default, 0); */
/* Read in variables from the environment. It is important that this be
done before $(MAKE) is figured out so its definitions will not be