17 lines
735 B
Makefile
17 lines
735 B
Makefile
GLOBAL_IP=`dig +short @dns.toys -4 ip`
|
|
|
|
.PHONY: server server-opt
|
|
server: surnames.txt names.txt
|
|
GLOBAL_IP=$(GLOBAL_IP) cargo run
|
|
|
|
server-opt: surnames.txt names.txt
|
|
GLOBAL_IP=$(GLOBAL_IP) cargo run --release
|
|
|
|
surnames.txt:
|
|
curl https://raw.githubusercontent.com/Hyneman/moby-project/672f6bdca054c42d375f065ffee87e8ceba0c242/moby/mwords/21986na.mes |\
|
|
iconv -f cp1252 - > surnames.txt
|
|
|
|
names.txt:
|
|
curl https://raw.githubusercontent.com/Hyneman/moby-project/672f6bdca054c42d375f065ffee87e8ceba0c242/moby/mwords/3897male.nam > male.txt
|
|
curl https://raw.githubusercontent.com/Hyneman/moby-project/672f6bdca054c42d375f065ffee87e8ceba0c242/moby/mwords/4946fema.len > female.txt
|
|
cat male.txt female.txt | sort | uniq > names.txt
|