summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1996-11-03 03:29:57 +0000
committerSteve Price <steve@FreeBSD.org>1996-11-03 03:29:57 +0000
commit8a87dec9bf51554c51c73020216a32b793ac3d96 (patch)
tree9e0b1a5c68ea6d2e0fe63cbd1f89b36fb1b8e890
parent2be2be749b5c033b3ba14b1e3af5ed7506f6f038 (diff)
Notes
-rw-r--r--usr.bin/make/parse.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index 07631a56241cd..21e8a1efd2938 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: parse.c,v 1.14 1996/10/08 04:06:05 steve Exp $
*/
#ifndef lint
@@ -166,6 +166,9 @@ typedef enum {
Parallel, /* .PARALLEL */
ExPath, /* .PATH */
Phony, /* .PHONY */
+#ifdef POSIX
+ Posix, /* .POSIX */
+#endif
Precious, /* .PRECIOUS */
ExShell, /* .SHELL */
Silent, /* .SILENT */
@@ -219,6 +222,9 @@ static struct {
{ ".PARALLEL", Parallel, 0 },
{ ".PATH", ExPath, 0 },
{ ".PHONY", Phony, OP_PHONY },
+#ifdef POSIX
+{ ".POSIX", Posix, 0 },
+#endif
{ ".PRECIOUS", Precious, OP_PRECIOUS },
{ ".RECURSIVE", Attribute, OP_MAKE },
{ ".SHELL", ExShell, 0 },
@@ -1049,6 +1055,11 @@ ParseDoDependency (line)
case ExPath:
Lst_ForEach(paths, ParseClearPath, (ClientData)NULL);
break;
+#ifdef POSIX
+ case Posix:
+ Var_Set("%POSIX", "1003.2", VAR_GLOBAL);
+ break;
+#endif
default:
break;
}