From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B628B6DE0A7F for ; Tue, 29 Aug 2017 11:27:18 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.033 X-Spam-Level: X-Spam-Status: No, score=0.033 tagged_above=-999 required=5 tests=[AWL=0.053, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NWzZ3Cx6Y-En for ; Tue, 29 Aug 2017 11:27:15 -0700 (PDT) Received: from mail-lf0-f65.google.com (mail-lf0-f65.google.com [209.85.215.65]) by arlo.cworth.org (Postfix) with ESMTPS id 445776DE00DB for ; Tue, 29 Aug 2017 11:27:15 -0700 (PDT) Received: by mail-lf0-f65.google.com with SMTP id y15so2622774lfd.0 for ; Tue, 29 Aug 2017 11:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=Q3zc90KwWkU7S6oUKOvrY4fl/5miLSn/pihQe3TQI08=; b=YK5bwKnGnC6dzuGDE5eRhJ+HeV3RZrFmB3KN2ERnbIqVs++ztxiWn9XmIwIAAa+xv5 mVIe4rLb/as3bnhzywPJfCMJR3/PRRzHOuP+tSghwJPlzPhGGWz1hwJnR4Pl+UGGrSkU ZNSC/39HkeGFUpLqSw+H0sYqBr5w8eCza2qJClTTCfOg9I8dMMMQuqxo6ka5kA+sF7zq wUX2lkD9n8wpQh+yAg4tmZViQp5xWfQjIf/A0PTTk/pCpAmcv7vi3lrooMoyGmugYEMR sQ3KB58GC+zA+NzP4iZTSD/rvkm6fY0nYbSBm+zt+m/dYWlv73mclF/SEz3jIH7MovSf GOYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Q3zc90KwWkU7S6oUKOvrY4fl/5miLSn/pihQe3TQI08=; b=IIjcQeqw2siELnN1pOnMrbIIeb5RL8Hx4i4ifVOv8GerhyADiRZToF/XqnTIRthHlA chd9EVBO2TRqDgFG4pKu1wxO2V4oll6QpGw30Xkytto2FPrzNi0aSRn7Es9v0CISj/B9 M12J98T4UCWduICtOrElPOuNYFVEsPE+xyT7nV8Hc4BLuJXBifXWMiM55CXWPCneKpIZ sBq3l94CyZXQcaK87aDxnQDLFq6+iF/trxkqH4avAp34FQTj/ebQ06R1VC1FfhIt53HX 3kWqiQ0yxeIAA/lWnNFB3XgnC+miGq1dr0pqHN/wdOdegs3cGjmbusI4i4xdScNtr95R vLuQ== X-Gm-Message-State: AHYfb5gbUcaIG32EFf1wjMdjWr3CNCcksuPViAtVy8rYxpTnHQiar+Lx WLEXHnL9PeIPFNJrnqmCxw== X-Received: by 10.46.92.7 with SMTP id q7mr509332ljb.54.1504031232723; Tue, 29 Aug 2017 11:27:12 -0700 (PDT) Received: from localhost (mobile-access-5d6aa6-119.dhcp.inet.fi. [93.106.166.119]) by smtp.gmail.com with ESMTPSA id g28sm610946lfi.45.2017.08.29.11.27.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 Aug 2017 11:27:11 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 1/3] build: avoid an extra shell out in quiet variable function Date: Tue, 29 Aug 2017 21:27:07 +0300 Message-Id: <20170829182709.26841-1-jani@nikula.org> X-Mailer: git-send-email 2.11.0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2017 18:27:18 -0000 $(word 1, $1) yields the same result as the more complicated $(shell echo $1 | sed -e s'/ .*//') --- Makefile.local | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.local b/Makefile.local index af12ca7f2ef8..c51b9afb8fe6 100644 --- a/Makefile.local +++ b/Makefile.local @@ -182,14 +182,14 @@ verify-newer: # user how to enable verbose compiles. ifeq ($(V),) quiet_DOC := "Use \"$(MAKE) V=1\" to see the verbose compile lines.\n" -quiet = @printf $(quiet_DOC)$(eval quiet_DOC:=)"$1 $@\n"; $($(shell echo $1 | sed -e s'/ .*//')) +quiet = @printf $(quiet_DOC)$(eval quiet_DOC:=)"$1 $@\n"; $($(word 1, $(1))) endif # The user has explicitly enabled quiet compilation. ifeq ($(V),0) -quiet = @printf "$1 $@\n"; $($(shell echo $1 | sed -e s'/ .*//')) +quiet = @printf "$1 $@\n"; $($(word 1, $(1))) endif # Otherwise, print the full command line. -quiet ?= $($(shell echo $1 | sed -e s'/ .*//')) +quiet ?= $($(word 1, $(1))) %.o: %.cc $(global_deps) @mkdir -p $(patsubst %/.,%,.deps/$(@D)) -- 2.11.0