mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Drop grep and tr dependency in Makefile
Use only sed to get the bench signature. No functional change.
This commit is contained in:
parent
46fdb14b2f
commit
05e31c5e5f
1 changed files with 3 additions and 3 deletions
|
@ -277,7 +277,7 @@ endif
|
||||||
ifeq ($(debug),no)
|
ifeq ($(debug),no)
|
||||||
CXXFLAGS += -DNDEBUG
|
CXXFLAGS += -DNDEBUG
|
||||||
else
|
else
|
||||||
CXXFLAGS += -g
|
CXXFLAGS += -g
|
||||||
endif
|
endif
|
||||||
|
|
||||||
### 3.5 Optimization
|
### 3.5 Optimization
|
||||||
|
@ -446,12 +446,12 @@ profile-build:
|
||||||
|
|
||||||
embed-signature:
|
embed-signature:
|
||||||
@echo "Running benchmark for getting the signature ..."
|
@echo "Running benchmark for getting the signature ..."
|
||||||
@$(SIGNBENCH) 2>&1 | grep 'Nodes searched' | grep -o ": .*" | tr -d ': ' > sign.txt
|
@$(SIGNBENCH) 2>&1 | sed -n 's/Nodes searched : \(.*\)/\1/p' > sign.txt
|
||||||
@sed -i -e 's,^,/static const string Version/s/"\\(.*\\)"/"sig-,1' -e 's,$$,"/1,1' sign.txt
|
@sed -i -e 's,^,/static const string Version/s/"\\(.*\\)"/"sig-,1' -e 's,$$,"/1,1' sign.txt
|
||||||
@sed -i -f sign.txt misc.cpp
|
@sed -i -f sign.txt misc.cpp
|
||||||
@rm sign.txt
|
@rm sign.txt
|
||||||
|
|
||||||
signature-build: build embed-signature
|
signature-build: build embed-signature
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) all
|
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) all
|
||||||
|
|
||||||
signature-profile-build: build embed-signature profile-build
|
signature-profile-build: build embed-signature profile-build
|
||||||
|
|
Loading…
Add table
Reference in a new issue