From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 1 14:10:03 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B44E6106564A for ; Mon, 1 Mar 2010 14:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A38588FC08 for ; Mon, 1 Mar 2010 14:10:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o21EA3xb077800 for ; Mon, 1 Mar 2010 14:10:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o21EA3UM077799; Mon, 1 Mar 2010 14:10:03 GMT (envelope-from gnats) Date: Mon, 1 Mar 2010 14:10:03 GMT Message-Id: <201003011410.o21EA3UM077799@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jui-Nan Lin Cc: Subject: Re: bin/144388: different behavior of make(1) between command line argument and .MAKEFLAGS special target X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jui-Nan Lin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 14:10:03 -0000 The following reply was made to PR bin/144388; it has been noted by GNATS. From: Jui-Nan Lin To: bug-followup@FreeBSD.org, yanefbsd@gmail.com Cc: Subject: Re: bin/144388: different behavior of make(1) between command line argument and .MAKEFLAGS special target Date: Mon, 1 Mar 2010 21:36:56 +0800 Hi Garrett, Following is the result: # cat Makefile .MAKEFLAGS: -j1 all: /bin/sleep 10 & \ /bin/sleep 10 & @wait # time make all /bin/sleep 10 & /bin/sleep 10 & 0.000u 0.006s 0:00.01 0.0% 0+0k 0+0io 0pf+0w # time make -j1 all /bin/sleep 10 & /bin/sleep 10 & 0.000u 0.007s 0:10.00 0.0% 0+0k 0+0io 0pf+0w The latter version is correct because when specifying "-j", make(1) only forks a shell for all commands. If no "-j" specified, make forks 1 shell for each command. You can see manpage of make(1).