File: Makefile

package info (click to toggle)
rust-unicode-case-mapping 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 304 kB
  • sloc: makefile: 12
file content (14 lines) | stat: -rw-r--r-- 437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
UCD:=16.0.0

# the sed command removes entries in the table that map to themselves, which
# makes the data tables a bit smaller.
tables:
	yeslogic-ucd-generate case-folding-simple --rust-match ../ucd-generate/ucd-$(UCD)/ > src/case_folding_simple.rs
	yeslogic-ucd-generate case-mapping ../ucd-generate/ucd-$(UCD)/ > src/tables.rs
	cargo fmt
	sed -i.bak -E '/\(([0-9]+), &\[\1\]\)/d' src/tables.rs
	rm src/tables.rs.bak


.PHONY: tables