github.com/zuoyebang/bitalostable@v1.0.1-0.20240229032404-e3b99a834294/sstable/testdata/Makefile (about) 1 all: rebuild 2 3 .PHONY: rebuild 4 rebuild: make-table h.txt 5 ./make-table 6 7 h.txt: hamlet-act-1.txt 8 cat hamlet-act-1.txt | \ 9 tr '[:upper:]' '[:lower:]' | \ 10 grep -o -E '\w+' | \ 11 sort | \ 12 uniq -c | \ 13 awk '{printf "%7s %s\n", $$1, $$2}' \ 14 > h.txt 15 16 make-table: make-table.cc 17 g++ -std=c++14 -o make-table make-table.cc -lrocksdb