Skip to content

Commit 05e31c5

Browse files
committed
Drop grep and tr dependency in Makefile
Use only sed to get the bench signature. No functional change.
1 parent 46fdb14 commit 05e31c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ endif
277277
ifeq ($(debug),no)
278278
CXXFLAGS += -DNDEBUG
279279
else
280-
CXXFLAGS += -g
280+
CXXFLAGS += -g
281281
endif
282282

283283
### 3.5 Optimization
@@ -446,12 +446,12 @@ profile-build:
446446

447447
embed-signature:
448448
@echo "Running benchmark for getting the signature ..."
449-
@$(SIGNBENCH) 2>&1 | grep 'Nodes searched' | grep -o ": .*" | tr -d ': ' > sign.txt
449+
@$(SIGNBENCH) 2>&1 | sed -n 's/Nodes searched : \(.*\)/\1/p' > sign.txt
450450
@sed -i -e 's,^,/static const string Version/s/"\\(.*\\)"/"sig-,1' -e 's,$$,"/1,1' sign.txt
451451
@sed -i -f sign.txt misc.cpp
452452
@rm sign.txt
453453

454-
signature-build: build embed-signature
454+
signature-build: build embed-signature
455455
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) all
456456

457457
signature-profile-build: build embed-signature profile-build

0 commit comments

Comments
 (0)