-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
19 lines (13 loc) · 869 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
all: common-forenames-by-country.json common-forenames-by-country.min.json common-forenames.txt common-surnames-by-country.json common-surnames-by-country.min.json common-surnames.txt
common-forenames-by-country.json: common-forenames-by-country.csv
python3 forenames2json.py >common-forenames-by-country.json
common-forenames.txt: common-forenames-by-country.json
cat common-forenames-by-country.json | jq -r 'values[][].names[]|.localized + .romanized|.[]' | sort | uniq >common-forenames.txt
common-surnames-by-country.json: common-surnames-by-country.csv
python3 surnames2json.py >common-surnames-by-country.json
common-surnames.txt: common-surnames-by-country.json
cat common-surnames-by-country.json | jq -r 'values[][]|.localized + .romanized|.[]' | sort | uniq >common-surnames.txt
%.min.json: %.json
cat $< | jq -c . > $@
clean:
rm -f *.json *.txt