Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 5E8B01A9239 for ; Fri, 29 Jan 2021 22:52:31 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 73ECE84DE1; Fri, 29 Jan 2021 22:52:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A72E484DCD for ; Fri, 29 Jan 2021 22:52:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id DZyRslgR0iMX for ; Fri, 29 Jan 2021 22:52:29 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 4455C84D3D for ; Fri, 29 Jan 2021 22:52:29 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 3D759FA91; Fri, 29 Jan 2021 22:52:29 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Fri, 29 Jan 2021 22:52:29 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/make To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20210129225229.3D759FA91@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Fri Jan 29 22:52:29 UTC 2021 Modified Files: src/usr.bin/make: job.c Log Message: make(1): do not create empty shell files in jobs mode In a chain of dependencies such as "all: build; build: do-build", the intermediate targets do not have any commands. In jobs mode, nevertheless, an empty file was created and fed to the shell. This was unnecessary. See jobs-empty-commands.mk. The case of the special command line "...", which was suggested on current-users, is not optimized since it doesn't occur in practice. Suggested by Mateusz Guzik on current-users: https://mail-index.netbsd.org/current-users/2021/01/26/msg040215.html To generate a diff of this commit: cvs rdiff -u -r1.398 -r1.399 src/usr.bin/make/job.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.