mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-12-26 16:45:18 +00:00
18 lines
333 B
Makefile
18 lines
333 B
Makefile
|
all: rebuild
|
||
|
|
||
|
.PHONY: rebuild
|
||
|
rebuild: make-table h.txt
|
||
|
./make-table
|
||
|
|
||
|
h.txt: hamlet-act-1.txt
|
||
|
cat hamlet-act-1.txt | \
|
||
|
tr '[:upper:]' '[:lower:]' | \
|
||
|
grep -o -E '\w+' | \
|
||
|
sort | \
|
||
|
uniq -c | \
|
||
|
awk '{printf "%7s %s\n", $$1, $$2}' \
|
||
|
> h.txt
|
||
|
|
||
|
make-table: make-table.cc
|
||
|
g++ -std=c++14 -o make-table make-table.cc -lrocksdb
|