OCaml HTML5 parser/serialiser based on Python's JustHTML
1; Profile generator executable - only used during build
2(executable
3 (name gen_profiles)
4 (modules gen_profiles)
5 (libraries unix))
6
7; Rule to generate all profile modules from JSON data files
8(rule
9 (targets
10 profile_ar.ml profile_bg.ml profile_bn.ml profile_ca.ml profile_cs.ml
11 profile_da.ml profile_de.ml profile_el.ml profile_en.ml profile_es.ml
12 profile_et.ml profile_fa.ml profile_fi.ml profile_fr.ml profile_gu.ml
13 profile_he.ml profile_hi.ml profile_hr.ml profile_hu.ml profile_id.ml
14 profile_it.ml profile_ja.ml profile_ko.ml profile_lt.ml profile_lv.ml
15 profile_mk.ml profile_ml.ml profile_nl.ml profile_no.ml profile_pa.ml
16 profile_pl.ml profile_pt.ml profile_ro.ml profile_ru.ml profile_si.ml
17 profile_sq.ml profile_sv.ml profile_ta.ml profile_te.ml profile_th.ml
18 profile_tl.ml profile_tr.ml profile_uk.ml profile_ur.ml profile_vi.ml
19 profile_zh_cn.ml profile_zh_tw.ml
20 profiles.ml)
21 (deps
22 (glob_files profiles.sm/*))
23 (action
24 (run %{exe:gen_profiles.exe} profiles.sm .)))
25
26(library
27 (name langdetect)
28 (public_name html5rw.langdetect)
29 (libraries unix uutf)
30 (modules
31 langdetect
32 profiles
33 profile_ar profile_bg profile_bn profile_ca profile_cs
34 profile_da profile_de profile_el profile_en profile_es
35 profile_et profile_fa profile_fi profile_fr profile_gu
36 profile_he profile_hi profile_hr profile_hu profile_id
37 profile_it profile_ja profile_ko profile_lt profile_lv
38 profile_mk profile_ml profile_nl profile_no profile_pa
39 profile_pl profile_pt profile_ro profile_ru profile_si
40 profile_sq profile_sv profile_ta profile_te profile_th
41 profile_tl profile_tr profile_uk profile_ur profile_vi
42 profile_zh_cn profile_zh_tw))