summaryrefslogtreecommitdiff
path: root/usr.bin/make/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/main.c')
-rw-r--r--usr.bin/make/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c
index 7b9c1538def..ef2ef8dde6b 100644
--- a/usr.bin/make/main.c
+++ b/usr.bin/make/main.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: main.c,v 1.86 2007/10/24 13:19:24 espie Exp $ */
+/* $OpenBSD: main.c,v 1.87 2007/11/02 17:27:24 espie Exp $ */
/* $NetBSD: main.c,v 1.34 1997/03/24 20:56:36 gwr Exp $ */
/*
@@ -258,6 +258,9 @@ MainParseArgs(int argc, char **argv)
case 'j':
debug |= DEBUG_JOB;
break;
+ case 'J':
+ debug |= DEBUG_JOBTOKEN;
+ break;
case 'l':
debug |= DEBUG_LOUD;
break;
@@ -678,6 +681,7 @@ main(int argc, char **argv)
Dir_AddDir(defaultPath, d.current);
Var_Set(".CURDIR", d.current);
Var_Set(".OBJDIR", d.object);
+ Targ_setdirs(d.current, d.object);
/*
* Initialize various variables.