NetBSD Problem Report #51637

From dholland@netbsd.org  Sun Nov 20 01:22:39 2016
Return-Path: <dholland@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 51DA77A2E8
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 20 Nov 2016 01:22:39 +0000 (UTC)
Message-Id: <20161120012238.CE5E78559D@mail.netbsd.org>
Date: Sun, 20 Nov 2016 01:22:38 +0000 (UTC)
From: dholland@NetBSD.org
Reply-To: dholland@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: make doesn't accept .WAIT on the command line
X-Send-Pr-Version: 3.95

>Number:         51637
>Category:       bin
>Synopsis:       make doesn't accept .WAIT on the command line
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 20 01:25:00 +0000 2016
>Last-Modified:  Mon Nov 21 07:35:01 +0000 2016
>Originator:     David A. Holland
>Release:        NetBSD 7.99.30 (20160607)
>Organization:
>Environment:
System: NetBSD macaran 7.99.30 NetBSD 7.99.30 (MACARAN) #39: Tue Jun  7 15:26:15 EDT 2016  dholland@macaran:/usr/src/sys/arch/amd64/compile/MACARAN amd64
Architecture: x86_64
Machine: amd64
>Description:

If you want make to build multiple targets, you can pass multiple
targets on the command line:

   % make foo bar

but if you need them to happen serially, you're stuck:

   % make -j8 foo .WAIT bar
   make: make: don't know how to make .WAIT. Stop

(also the error message shouldn't say "make:" twice...)

>How-To-Repeat:

>Fix:
Not sure why this doesn't already work; I suppose targets on the
command line pass through different processing from targets on the RHS
of a rule, but there probably isn't any good reason for that.

>Audit-Trail:
From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/51637: make doesn't accept .WAIT on the command line
Date: Sun, 20 Nov 2016 15:13:41 +0700

     Date:        Sun, 20 Nov 2016 01:25:00 +0000 (UTC)
     From:        dholland@NetBSD.org
     Message-ID:  <20161120012500.B823B7A312@mollari.NetBSD.org>

   | but if you need them to happen serially, you're stuck:
   | 
   |    % make -j8 foo .WAIT bar
   |    make: make: don't know how to make .WAIT. Stop

 make -j8 foo && make -j8 bar   ??

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/51637: make doesn't accept .WAIT on the command line
Date: Mon, 21 Nov 2016 07:30:43 +0000

 On Sun, Nov 20, 2016 at 08:15:00AM +0000, Robert Elz wrote:
  >    | but if you need them to happen serially, you're stuck:
  >    | 
  >    |    % make -j8 foo .WAIT bar
  >    |    make: make: don't know how to make .WAIT. Stop
  >  
  >  make -j8 foo && make -j8 bar   ??

 That reloads the makefile... but I guess you aren't stuck per se.
 Anyway, there's no reason rules on the command line shouldn't accept
 .WAIT besides "the code sucks" :-/

 -- 
 David A. Holland
 dholland@netbsd.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.