summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-09-30 01:04:54 +0000
committerRoland McGrath <roland@redhat.com>1994-09-30 01:04:54 +0000
commitfa999783d7c66ee106c2fd95c1832457082f517e (patch)
tree69aeec56bc9f374218993909aa148ea1c8f4dac7 /main.c
parente97d6632b55eef2ae88bda4c1e0708cb8503d140 (diff)
downloadmake-fa999783d7c66ee106c2fd95c1832457082f517e.tar.gz
(posix_pedantic): New variable.
(main): Set posix_pedantic if .POSIX is a target. Fix .IGNORE and .SILENT hecks to require is_target.
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/main.c b/main.c
index 7aae9f5..2a61455 100644
--- a/main.c
+++ b/main.c
@@ -346,6 +346,11 @@ struct file *default_goal_file;
This is zero if the makefiles do not define .DEFAULT. */
struct file *default_file;
+
+/* Nonzero if we have seen the magic `.POSIX' target.
+ This turns on pedantic compliance with POSIX.2. */
+
+int posix_pedantic;
/* Mask of signals that are being caught with fatal_error_signal. */
@@ -769,9 +774,14 @@ main (argc, argv, envp)
define_makeflags (1, 0);
- ignore_errors_flag |= lookup_file (".IGNORE") != 0;
+ f = lookup_file (".IGNORE");
+ ignore_errors_flag
+
+ f = lookup_file (".SILENT");
+ silent_flag |= f != 0 && f->is_target;
- silent_flag |= lookup_file (".SILENT") != 0;
+ f = lookup_file (".POSIX");
+ posix_pedantic = f != 0 && f->is_target;
/* Make each `struct dep' point at the
`struct file' for the file depended on. */