From 02c53380d896a7276d47feaa2acf6a9d54c5cde5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E7=9B=8A=E9=94=8B?= <842056007@qq.com> Date: Mon, 9 May 2022 14:33:04 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9configure=E6=8F=90=E9=AB=98?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E9=80=9F=E7=8E=87=20=E6=AD=A4=E5=A4=84grep?= =?UTF-8?q?=20-rn=E6=93=8D=E4=BD=9C=E4=BC=9A=E9=80=92=E5=BD=92=E5=BE=88?= =?UTF-8?q?=E5=A4=9A=E6=97=A0=E5=85=B3=E6=96=87=E4=BB=B6=EF=BC=8C=E5=B0=A4?= =?UTF-8?q?=E5=85=B6=E6=98=AF=E5=90=8E=E6=9C=9F=E6=96=87=E4=BB=B6=E6=95=B0?= =?UTF-8?q?=E8=B6=8A=E5=A4=9A=EF=BC=8C=E9=80=9F=E7=8E=87=E4=BC=9A=E8=B6=8A?= =?UTF-8?q?=E6=85=A2=E3=80=82=20=E5=BB=BA=E8=AE=AE=E5=85=88find=E6=A3=80?= =?UTF-8?q?=E7=B4=A2Makefile=E7=9B=AE=E6=A0=87=EF=BC=8C=E8=BF=9B=E4=B8=80?= =?UTF-8?q?=E6=AD=A5grep=EF=BC=8Cawk=E5=8C=B9=E9=85=8D=E6=AF=94=E8=BE=83?= =?UTF-8?q?=E5=90=88=E9=80=82=EF=BC=8C=E6=89=A7=E8=A1=8C=E6=95=88=E6=9E=9C?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A6=82=E4=B8=8B=EF=BC=9A=20```=20grep=20-n?= =?UTF-8?q?rw=20"target=20:=3D"=20$(pwd)/source/tools/=20|=20awk=20'{print?= =?UTF-8?q?=20$3}'=20|=20grep=20-v=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit real 0m2.631s user 0m2.388s sys 0m0.248s find $(pwd)/source/tools/ -name Makefile -exec grep -H 'target :=' {} \; | awk '{print $3}' | grep -v test real 0m0.113s user 0m0.043s sys 0m0.075s ``` --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 3d679206..2175f91b 100755 --- a/configure +++ b/configure @@ -119,7 +119,7 @@ for opt; do disable_list="$disable|$disable_list" ;; --show-target) - grep -nrw "target :=" $(pwd)/source/tools/ | awk '{print $3}' | grep -v test + find $(pwd)/source/tools/ -name Makefile -exec grep -H 'target :=' {} \; | awk '{print $3}' | grep -v test exit ;; *) -- Gitee